Content deleted Content added
Guarapiranga (talk | contribs) →Examples: Duplicated |
Why would an outdated extension with security issues have been more suitable? |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1:
{{high-use|850}}
{{mobile view problem|explanation=Bar charts behave unpredictably, causing problems with the axes and legend. Use [[Template:Graph:Chart]] instead. Pie charts aren't too bad.}}▼
{{Template display|badmobile}}
Module Chart exports two functions: bar chart and pie chart
==Drawing Bar charts: "bar chart"==
Line 44 ⟶ 43:
| {{nowrap|y tick marks}} || number of tick marks on the y axis. if the value is negative or omitted, the module will attempt to automatically calculate a sensible number of tick marks.
|}
==Display in the mobile view==
▲
===Examples===
Line 241 ⟶ 243:
===Examples===
<pre>
{{#invoke:Chart|pie chart
| radius = 150
Line 252 ⟶ 255:
| percent = true
}}
</pre>
{{#invoke:Chart|pie chart
| radius = 150
| slices =
( 1000000 : Apples )
( 2000000 : Bananas : gold)
( 1440000 : Apricots )
( 6.4e5 : Pears : : [[Pear|Pears]] )
( 750,000 : Pineapples )
| units suffix = _Tonne
| percent = true
}}
<pre>
{{#invoke:chart|pie chart
|radius= 200
|units suffix = _Units
| slice 1 = 1 : 1
| slice 2 = 7 : 7
| slice 3 = 8 : 8
| slice 4 = 9 : 9
| slice 5 = 10 : 10
| slice 6 = 11 : 11
| slice 7 = 12 : 12
| slice 8 = 13 : 13
| slice 9 = 14 : 14
| slice 10 = 15 : 15
| slice 11 = 16 : 16
| slice 12 = 17 : 17
| slice 13 = 18 : 18
| slice 14 = 19 : 19
| slice 15 = 20 : 20
| slice 16 = 21 : 21
| slice 17 = 22 : 22
| slice 18 = 23 : 23
| slice 19 = 24 : 24
| slice 20 = 25 : 25
| slice 21 = 26 : 26
| slice 22 = 27 : 27
| slice 23 = 28 : 28
| slice 24 = 29 : 29
| slice 25 = 30 : 30
| slice 26 = 31 : 31
| percent = true
}}
</pre>
{{#invoke:chart|pie chart
Line 284 ⟶ 334:
| percent = true
}}
<noinclude>
[[Category:Module documentation pages]]
</noinclude>
|