Template:Graph:Pie chart/doc
This is a documentation subpage for Template:Graph:Pie chart. It contains usage information, categories, and other content that is not part of the original template page. |
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
Graphs are temporarily unavailable due to technical issues. |
See it in Wikidata Query Service
Parameters edit
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Graph data URL | query | no description
| String | optional |
title | title | What to show as a graph description
| String | optional |
width | width | no description
| Number | optional |
height | height | no description
| Number | optional |
valueColumn | valueColumn | Name of the query result's column that contains value for the pie graph
| String | optional |
labelColumn | labelColumn | Name of the query result's column that contains label for the pie graph
| String | optional |
sortby | sortby | default sorting is by value. To override, add sortby=labelColumn | String | optional |
See also edit
|