Template:Graph:Chart/doc

Parameters
{{#if:{{{1|}}}||
 * formatjson: format JSON object for better legibility

Template wrappers
The functions  and   are wrappers to pass all parameters of the calling template to the respective   and   functions. }}

Note: In the editor preview the graph extension creates a canvas element with vector graphics. However, when saving the page a PNG raster graphics is generated instead.

Examples
Line Chart:

 

Note: The y-axis starts from the smallest y value, though this can be overridden with the yAxisMin parameter.

Area chart:

 

Note: The y-axis starts from zero

Bar chart:

 

Line chart with more than one data series, using colors:

 

Area chart with more than one data series showing blended overlap:

 

Bar chart with multiple data series:

 

Area chart with smoothed data values:

 

Bar chart with stacked data series:

 </tt>

 </tt>

 </tt>

 </tt>

 </tt>

Line Chart in an image frame:

 </tt>