Template:Graph:Pie from row/doc
This is a documentation subpage for Template:Graph:Pie from row. It contains usage information, categories and other content that is not part of the original template page. |
Pie chart
You can add a pie chart with a call to this template.
Examples
Example usage:
{{Graph:Pie from row | table = Bea.gov/GDP by state.tab |
{{Graph:Pie from row | table = Bea.gov/GDP by state.tab |
---|---|
See or edit source data. |
See or edit source data. |
Template Data
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 series columns to plot, and the rowtest to select which row to use
| Unknown | required |
Series | series | Data page name on Commons, without the Data: prefix. The table should contain xField column, like year or date, and one or more series columns to plot | String | required |
Rowtest | rowtest | a condition to select just one row of the data for the display
| String | required |
Radius | radius | Specify the radius of the pie in number of pixels
| Number | suggested |
Legend Title | legend | The title that will appear above the legend, or '-' to hide it
| String | 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 |
Show | show | Show "label", "value" or "both" inside the pie chart | String | optional |
Title | title | Optional title for the graph | String | optional |
Debug | debug | no description | Unknown | optional |