Template:Graph:Pie chart/doc

Generic pie chart that uses data from an external data url. The url must return 'label' and 'value' columns, or the column names must be specified using 'valueColumn' and 'labelColumn' params.

Example edit

See it in Wikidata Query Service

Parameters edit

No description.

Template parameters

ParameterDescriptionTypeStatus
Graph data URLquery

no description

Example
SELECT...
Auto value
Stringoptional
titletitle

What to show as a graph description

Auto value
Stringoptional
widthwidth

no description

Default
300
Numberoptional
heightheight

no description

Default
300
Numberoptional
valueColumnvalueColumn

Name of the query result's column that contains value for the pie graph

Default
value
Stringoptional
labelColumnlabelColumn

Name of the query result's column that contains label for the pie graph

Default
label
Stringoptional
sortbysortby

default sorting is by value. To override, add sortby=labelColumn

Stringoptional

See also edit