Template:Graph:Chart/testcases
{{Testcases notice }}
{{Test case|_collapsible=yes|_showcode=yes|_title=Line 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}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Area chart
|width=400|height=100|type=area|x=1,2,3,4,5,6,7,8|y=10,12,6,14,2,10,7,9}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Bar chart 1
|width=400|height=100|xAxisTitle=X|yAxisTitle=Y|type=rect|x=1,2,3,4,5,6,7,8|y=10,12,6,14,2,10,7,9}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Bar chart 2
|width=400|height=100|xAxisTitle=X|yAxisTitle=Y|yType=number|type=rect|x=1,2,3,4,5,6,7,8|y=1,1,1,1,2,2,1,1}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Line chart - semilog in y with zeroes (no failsafe for log(0))
|width=400|height=200|type=line |yScaleType=log|x=1,2,3,4,5,6,7,8|y=10,12,6,14,2,0,7,9}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Line chart - semilog in y with zeroes (yAxisMin protection)
|width=400|height=200|type=line |yScaleType=log|yAxisMin=1 |x=1,2,3,4,5,6,7,8|y=10,12,6,14,2,0,7,9}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Line chart with multiple data series
|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|linewidths= 1, 10}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Line chart with symbols
|width=400|height=100|type=line|x=1,2,3,4,5,6,7,8|y=10,12,6,14,2,10,7,9|showSymbols= |symbolsShape=diamond}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Line chart with multiple data series and symbols
|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|showSymbols=5, 10|symbolsShape = square, banana| symbolsNoFill = |linewidths = }}
{{Test case|_collapsible=yes|_showcode=yes|_title=Area chart with multiple data series
|width=400|height=100|xAxisTitle=X|yAxisTitle=Y|legend=Legend|type=area|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=#800000aa,#80ff8000}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Bar chart with multiple data series
|width=400|height=100|xAxisTitle=X|yAxisTitle=Y|legend=Legend|type=rect|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=#800000aa,#80ff8000}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Area chart with smoothed data values
|width=400|height=100|xAxisTitle=X|yAxisTitle=Y|legend=Legend|type=stackedarea|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|interpolate=monotone|colors=seagreen, orchid}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Bar chart with text
|width=400|height=100|xAxisTitle=X|yAxisTitle=Y|type=rect|x=1,2,3,4,5,6,7,8|y=10,12,6,14,2,10,7,9|showValues=true}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Bar chart with text offset
|width=400|height=100|xAxisTitle=X|yAxisTitle=Y|type=rect|x=1,2,3,4,5,6,7,8|y=10,12,6,14,2,10,7,9|showValues=offset:1}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Bar chart with stacked data series
|width=400|height=100|xAxisTitle=X|yAxisTitle=Y|legend=Legend|type=stackedrect|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|y1Title=Data A|y2Title=Data B|colors=seagreen, orchid}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Pie chart
|width=100|height=100|type=pie|legend=Legende|x=A,B,C,D,E,F,G,H,I|y1=100,200,150,300,100,100,150,50,200}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Pie chart with text
|width=100|height=100|type=pie|legend=Legende|x=A,B,C,D,E,F,G,H,I|y1=100,200,150,300,100,100,150,50,200|showValues=}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Pie chart with variable radius
|width=100|height=100|type=pie|legend=Legende|x=A,B,C,D,E,F,G,H,I|y1=100,200,150,300,100,100,150,50,200|y2=7,8,9,8,8,9,10,9,5|showValues=}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Donut chart
|width=100|height=100|type=pie|innerRadius=40|legend=Legende|x=A,B,C,D,E,F,G,H,I|y1=100,200,150,300,100,100,150,50,200}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Line chart with horizontal annotationsonly
|type = line |colors = #ffff5ba0, #641050ff, #ffaaff00,|x=0,1,2,3|y1=0,3.342,2.3423,5.32423|y2=1,2.342,4.63,2.32423|y3=3,1.342,2.63,6.32423|linewidths = 2,4,0|showSymbols = 3,3,3|symbolsShape = triangle_up, cross, banana |hannotatonsline = 4, 5, 6 |hannotatonslabel = label4, label5, label6
}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Area chart with vertical annotations only
|type = area |colors = #ffff5ba0, #641050ff, #ffaaff00,|x=0,1,2,3|y1=0,3.342,2.3423,5.32423|y2=1,2.342,4.63,2.32423|y3=3,1.342,2.63,6.32423|vannotatonsline = 1, 2, 3 |vannotatonslabel = label1, label2, label3
}}
{{Test case|_collapsible=yes|_showcode=yes|_title=Stacked area chart with annotations
|type = stackedarea |colors = #ffff5ba0, #641050ff, #ffaaff00,|x=0,1,2,3|y1=0,3.342,2.3423,5.32423|y2=1,2.342,4.63,2.32423|y3=3,1.342,2.63,6.32423|linewidths = 2,4,0|vannotatonsline = 1, 2, 3 |hannotatonsline = 4, 5, 6 |vannotatonslabel = label1, label2, label3 |hannotatonslabel = label4, label5, label6
}}