Line charts

Offline MediaWiki Code Editor

Line Charts
Previous Top Next


Line Chart with One Data Series

{{Graph:Chart|width=400|height=100|type=line|x=1,2,3,4,5,6,7,8|y=10,
12,6,14,2,10,7,9}}

graphic

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


Line Chart with Multiple Data Series

{{Graph:Chart|width=400|height=100|xAxisTitle=X|yAxisTitle=Y|legend
=Legend|type=line|x=1,2,3,4,5,6,7,8|y1=10,12,6,14,2,10,7,9|y2=2,4,6,8,13,
11,9,2|colors=#0000aa,#ff8000}}



graphic