Vojna Enciklopedija:Postavljanje dijagrama

Iz Vojne Enciklopedije
Ово је најновија верзија ове странице; нема одобрених измена.
Пређи на навигацију Пређи на претрагу

Sample charts

Here are some simple samples of what you can do with pChart for MediaWiki:

Wiki Markup Display
Simple bar chart (histogram) with legend (using tag syntax)
<pbars size=300x150 title="Site Visitors" 
 ymin=0 ymax=10000 legend>
,Europe,United States,Asia
Oct,5345,3110,1291
Nov,3452,3695,1047
Dec,7843,4712,1305
</pbars>
Датотека:Pchart4mw-sample-01.png
Simple pie chart (using parser function syntax)
{{#pPie: exploded|3d|data=
Sales,43
Marketing,21
Development,56
Customer Support,23
Information Technology,31
Administration,13
}}
Датотека:Pchart4mw-sample-02.png
Line chart filled and rounded (using tag syntax)
<pLines ymin=0 ymax=10000 axiscolor=888888 cubic filled 
 angle=90 plots legend>
,US,EU
Jan,6748,4301
Feb,3911,5019
Mar,3019,3941
Apr,4810,6412
May,2203,4823
Jun,4510,4110
Jul,3918,5510
Aug,8810,2930
Sep,7182,3504
Oct,6911,3881
Nov,6749,4761
Dec,7184,4918
</pLines>
Датотека:Pchart4mw-sample-03.png
Radar chart filled (using parser function syntax)
{{#pRadar: size=300x200|striped|filled|data=
,Allocated Budget,Actual Spending
Sales,4,5
Marketing,2,5
Development,6,1
Customer Support,2,1
IT,3,2
Administration,1,1
}}
Датотека:Pchart4mw-sample-04.png

Ostali primeri

Primer 1

<pie 3d title="Bundestagswahl 2005" size=300x150 xlabel>
SPD,       34.2
CDU,       27.8
CSU,        7.4
GRÜNE,      8.1
FDP,        9.8
Die Linke., 8.7
Sonstige,   3.9
</pie>

<pie 3d title="Bundestagswahl 2005" size=300x150 xlabel> SPD, 34.2 CDU, 27.8 CSU, 7.4 GRÜNE, 8.1 FDP, 9.8 Die Linke., 8.7 Sonstige, 3.9 </pie>

Primer 2

<lines size=270x120 title="Avg. Temp (°F)" ymin=0 ymax=80 colors=8AB800,F5B800 xlabel ylabel=4 grid=xy legend>
 ,Berlin,Sydney
J,30.4,71.2
F,33.1,71.6
M,38.3,69.1
A,47.1,64.0
M,56.3,57.2
J,62.6,53.4
J,65.5,51.3
A,64.2,53.4
S,57.7,57.0
O,48.2,62.6
N,39.0,65.8
D,33.8,69.6
</lines>

<lines size=270x120 title="Avg. Temp (°F)" ymin=0 ymax=80 colors=8AB800,F5B800 xlabel ylabel=4 grid=xy legend>

,Berlin,Sydney

J,30.4,71.2 F,33.1,71.6 M,38.3,69.1 A,47.1,64.0 M,56.3,57.2 J,62.6,53.4 J,65.5,51.3 A,64.2,53.4 S,57.7,57.0 O,48.2,62.6 N,39.0,65.8 D,33.8,69.6 </lines>