Extension:GoogleCharts

Purpose
Provides a simple interface for embedding GoogleCharts.

One notable feature of this extension comes from the fact that the native GoogleCharts formatting language is almost entirely untouched and transparent; this allows for very easy forward compatibility.

Furthermore, the implementation through parser functions allows for very flexible templating capabilities.

gchart parser function

 * each parameter must be separated by an &
 * alternate text is the text displayed if the chart can not be loaded
 * alternate text is the text displayed if the chart can not be loaded

gchart_pipe parser function
Many optional parameters of the GoogleCharts must be separated with the pipe | character. This character bears syntaxical meaning in MediaWiki and thus must be accounted for in a special way. The use of the parser function gcharts_pipe solves this issue.


 * Each parameter must be coma separated and the produced output parameter list will be pipe | separated.
 * Each parameter must be coma separated and the produced output parameter list will be pipe | separated.

gchart_senc parser function
Chart data can be encoded three ways: The parser function gcharts_senc implements the Simple Encoding function:
 * Simple Encoding
 * Text Encoding
 * Extended Encoding
 * params is a coma separated parameter list
 * maxvalue corresponds to the maximum value found in the data set
 * maxvalue corresponds to the maximum value found in the data set

Documentation
The official source of information for GoogleCharts can be found here.

Dependencies

 * StubManager extension

TODO

 * Implement a parser function to simplify the Extended Encoding format