"साँचा:Pie chart/doc": अवतरणों में अंतर

टैग: मोबाइल संपादन मोबाइल वेब संपादन उन्नत मोबाइल संपादन
टैग: मोबाइल संपादन मोबाइल वेब संपादन उन्नत मोबाइल संपादन
पंक्ति 3:
__NOTOC__
=== Usage ===
The labels and values of up to ten30 slices may be specified. All the parameters for threesix slices are included below; to include more slices, copy the code for one of the others, changing the digit at the end of each parameter name.
<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}}
| valign=top style="padding-right:1em"|
:1.# {{legend|red#1f78b4|redstrong blue}}
:2.# {{legend|green#b2df8a|light green}}
:3.# {{legend|blue#33a02c|bluestrong green}}
:9.# {{legend|purple#fb9a99|purplefuchsia}}
 
:10.# {{legend|sienna#e31a1c|siennared}}
| valign=top style="padding-right:1em"|
:4.# {{legend|yellow#fdbf6f|yellowlight orange}}
:5.# {{j|{{legend|fuchsia#ff7f00|fuchsia}}strong orange}}
:6.# {{legend|aqua#cab2d6|aqualight purple}}
# {{legend|#6a3d9a|strong purple}}
 
# {{legend|#ffff99|light yellow}}
| valign=top style="padding-right:1em"|
:7.# {{legend|brown#b15928|brown}}
|}}
:8. {{j|{{legend|orange|orange}} }}
 
| valign=top |
:9. {{legend|purple|purple}}
:10. {{legend|sienna|sienna}}
|}
 
=== Limitations ===