Template:Graph:Pie2/doc
Appearance
This is a documentation subpage for Template:Graph:Pie2. It contains usage information, categories and other content that is not part of the original Template page. |
Pie chart
[edit]You can add a pie chart with a call to this template.
Examples
[edit]Example usage:
{{Graph:Pie2 | table = Wikimedia/all sites by browser family and major percent.tab | field1 = browserFamily | field2 = browserMajorVer | value = percent | width = 300 }} |
See or edit source data. |
Template Data
[edit]This template adds a pie chart to the page using Graph extension
Parameter | Description | Type | Status | |
---|---|---|---|---|
table | table | Data page name on Commons, without the Data: prefix. The table should contain at least three columns - major group, minor group, and numeric value
| Unknown | required |
field1 | field1 | Id of the column shown as the inner circle
| Unknown | required |
field2 | field2 | Id of the column shown as the outer circle
| Unknown | required |
value | value | Id of the column with the numeric value
| Unknown | required |
width | width | Specify the width of the pie in number of pixels
| Number | suggested |
The colors of the slices | colors | The colors of the slices, specified as Vega defined rangeliteral. This can also be a list like [ "red", "green" ]
| String | optional |
innerportion | innerportion | Portion of the radius shown for the inner circle. Must be between 0 and 0.5
| Number | optional |
debug | debug | no description | Unknown | optional |