Template:Graph:Pie from row/doc

Pie chart
You can add a pie chart with a call to this template.

Examples
Example usage:

Template Data
{	"params": { "radius": { "label": "Radius", "description": "Specify the radius of the pie in number of pixels", "example": "100", "default": "100", "type": "number", "suggested": true },		"legend": { "label": "Legend Title", "description": "The title that will appear above the legend, or '-' to hide it", "example": "\"Fruits\"", "type": "string", "default": "\"Legend\"", "suggested": true },		"table": { "description": "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", "required": true, "example": "bea.gov/GDP by state.tab" },		"colors": { "label": "The colors of the slices", "description": "The colors of the slices, specified as Vega defined rangeliteral. This can also be a list like [ \"red\", \"green\" ]", "example": "\"category10\"", "type": "string", "default": "\"category10\"" },		"debug": {}, "rowtest": { "description": "a condition to select just one row of the data for the display", "example": "year==2015", "type": "string", "required": true },		"series": { "description": "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", "type": "string", "required": true },		"show": { "description": "Show \"label\", \"value\" or \"both\" inside the pie chart", "type": "string" },		"title": { "description": "Optional title for the graph", "type": "string" }	},	"description": "This template adds a pie chart to the page using Graph extension", "format": "inline", "paramOrder": [ "table", "series", "rowtest", "radius", "legend", "colors", "show", "title", "debug" ] }