Aller au contenu

Modèle:Graph:Chart/Documentation

Cha vient éd Wikipedia

(lua)

Paramètes

... width=400|height=100|type=...|x=1,2,3|y=3, 2, 1

type= line , area , rect , stackedarea , stackedrect , pie
x=2011/8/1,2011/9/1,2011/10/1,2011/11/1,2011/12/1,2012/1/1,2012/2/1,2012/3/1|y=10, 12, 6, 14, 2, 10, 7, 9|xType=date
yAxisMin=0
xAxisTitle=X|yAxisTitle=Y
x=1,2,3|y=10, 12, 6 |showValues=
x=1,2,3|y=10, 12, 6|showValues=offset:4
|x=1,2,3|y1=10, 12, 6 |y2=2,4,6|colors=#0000aa,#ff8000
colors=seagreen, orchid
interpolate=monotone


Égzimpes

Grafe linéaire: type=line

{{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}}

Note: Chl' axe y kmince aveuc l'pus tiote value y , mais o put uzer ch' paramète yAxisMin .

Diagramme éd zone: type=area

{{Graph: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}}

Note: The y-axis starts from zero

Histogramme: type=rect

{{Graph:Chart|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}}


Grafe linéaire aveuc pusse qu'ène courbe:

{{Graph:Chart|width=400|height=200|xAxisTitle=X|yAxisTitle=Y|legend=Léginde|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}}


Diagramme éd zone aveuc pusse qu'ène série éd données:

{{Graph:Chart|width=400|height=100|xAxisTitle=X|yAxisTitle=Y|legend=Léginde|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}}


Histogramme aveuc des séries éd données multipes:

{{Graph:Chart|width=400|height=100|xAxisTitle=X|yAxisTitle=Y|legend=Léginde|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}}


Diagramme éd zone aveuc des courbes splines:

{{Graph:Chart|width=400|height=100|xAxisTitle=X|yAxisTitle=Y|legend=Léginde|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}}


Histogramme aveuc des données imbérnatchées:

{{Graph:Chart|width=400|height=100|xAxisTitle=X|yAxisTitle=Y|legend=Léginde|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}}


Camemberts :

Tarte:
{{Graph:Chart|width=100|height=100|type=pie|legend=Leginde|x=A,B,C,D,E,F,G,H,I|y1=100,200,150,300,100,100,150,50,200}}


Tarte aveuc valeurs:
{{Graph:Chart|width=100|height=100|type=pie|legend=Leginde|x=A,B,C,D,E,F,G,H,I|y1=100,200,150,300,100,100,150,50,200|showValues=}}


{{Graph: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|y2=7,8,9,8,8,9,10,9,5|showValues=}}


Diagramme in anniau:
{{Graph:Chart|width=100|height=100|type=pie|innerRadius=40|legend=Leginde|x=A,B,C,D,E,F,G,H,I|y1=100,200,150,300,100,100,150,50,200}}