Extension:SemanticHighcharts

The SemanticHighcharts extension extends Semantic MediaWiki with a Highcharts result format, allowing for the creation of charts using the Highcharts JavaScript library.

License
This extension uses a library that is free for non-commercial use (CC BY-NC 3.0). However if you plan on using this in a commercial setting then please read about highcharts licensing.

Due to this license, the extension is by default disabled until the configuration  is set in LocalSettings.php. By adding this, you effectively agree to the license of the Highcharts library.

The rest is licensed under GPLv3.

Installation
Download and install using Composer or Extension Installer

Installation with Composer under Linux/Unix


 * 1) Make sure that your MediaWiki version is > 1.22.x, else you cannot use Composer.
 * 2) If you are not familiar with composer, read both SMW installation and instructions for installing Composer
 * 3) Change to your MediaWiki installation directory (not the extensions directory), then type
 * 4) Edit LocalSettings.php and add

Extensions installed with Composer will auto-load! Therefore do not invoke such extensions with

Usage
Will output a table of defined charts and a description of both the chart, and applicable parameters.

For example the given code:

Would create a frequency histogram of the values contained in "SomeParameter".

The following image show's how what the frequency-histogram format looks like.



Develop new charts
If you are unable to find a chart that suits your particular data, then you have the option to create your own chart or even modify existing charts. To create a new chart, just add a class that extends the Chart class and register this chart class in Highcharts.php with a format name.

Take a look at the FrequencyHistogram class for help implementing your own chart.

After you have developed a chart, then you are welcome to submit the patch to the gerrit repository for review.

Configuration
$shcConfig['percentile definition'] = 'petroleum industry'; // Swaps the statistical definition of P10 and P90 as used in FrequencyHistogram