"साँचा:Pie chart/doc": अवतरणों में अंतर
Content deleted Content added
टैग: मोबाइल संपादन मोबाइल वेब संपादन उन्नत मोबाइल संपादन |
टैग: मोबाइल संपादन मोबाइल वेब संपादन उन्नत मोबाइल संपादन |
||
पंक्ति 3:
__NOTOC__
=== Usage ===
The labels and values of up to
<pre><nowiki>
{{Pie chart
| radius = 100
| thumb =
| caption =
Line 30 ⟶ 31:
</nowiki></pre>
* The parameter {{para|radius}} specifies the radius of the pie chart in pixels. Do not include a "px" suffix. If omitted, it will default to 100.
* The parameter {{para|thumb}} specifies which side of the page the chart is floated to and defaults to <code>right</code>, as with image files. To make the chart appear on the ''left'' side of the page, specify {{para|thumb|left}}.
* The parameter {{para|caption}} specifies a string of text that appears on a line just before the legend.
* The parameter {{para|footer}} specifies a string of text that appears ''below'' the legend.
* The parameter {{para|other}}, if specified, will cause an "Other" item to appear in the legend.
* Each {{para|label''N''}} is a string of text that appears in the legend entry for a slice. Omitting it will cause a legend entry to not be shown for that slice.
* Each {{para|value''N''}} is the percentage that the slice represents. Do ''not'' include the percent sign. Also note that it is shown in the legend as written (just after the label), without any rounding or other reformatting.
* Each {{para|color''N''}} is a [[Web colors|CSS color code or name]]. If omitted, it will default to the following hues:
{{columns-list|colwidth=12em|
# {{legend|#a6cee3|light blue}}
# {{legend|#6a3d9a|strong purple}}
# {{legend|#ffff99|light yellow}}
▲:9. {{legend|purple|purple}}
▲:10. {{legend|sienna|sienna}}
▲|}
=== Limitations ===
|