Module:Chart/doc: Difference between revisions

Content deleted Content added
updated documentation
Why would an outdated extension with security issues have been more suitable?
 
(9 intermediate revisions by 8 users not shown)
Line 1:
{{high-use|850}}
{{Template display|badmobile}}
Module Chart exports two functions: bar chart and pie chart
 
; Note - [[Template:Graph:Chart]] is an alternative template, that may be more suitable for your use case.
 
==Drawing Bar charts: "bar chart"==
Line 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==
Bar charts behave unpredictably, causing problems with the axes and legend. Use [[Template:Graph:Chart]] instead. {{dubious span |date=July 2023 |Pie charts aren't too bad.}}
 
===Examples===
Line 240 ⟶ 243:
===Examples===
 
<pre>
{{#invoke:Chart|pie chart
| radius = 150
Line 251 ⟶ 255:
| percent = true
}}
</pre>
 
{{#invoke:Sandbox/Ita140188/chart2Chart|pie chart
 
{{#invoke:Sandbox/Ita140188/chart2|pie chart
| radius = 150
| slices =
Line 265 ⟶ 269:
}}
 
<pre>
 
 
 
{{#invoke:chart|pie chart
|radius= 200
Line 299 ⟶ 301:
| percent = true
}}
</pre>
 
{{#invoke:Sandbox/Ita140188/chart2chart|pie chart
|radius= 200
|units suffix = _Units
Line 331 ⟶ 334:
| percent = true
}}
<noinclude>
[[Category:Module documentation pages]]
</noinclude>