The PieChart is a plot operator that computes a pie chart for a given vector dataset. Moreover, the operator considers all data in the given query rectangle.
PieChart
There are multiple variants on how to compute the slices of the pie chart. In addition, it is possible to compute a donut chart instead of a standard pie chart.
type
"count"
columnName
String
"name"
The type parameter can be one of the following values:
count
The operator consumes exactly one vector operator.
vector
SingleVectorSource
The operator returns an error in the following cases.
attribute
32
If the attribute has a Measurement of type Classification, the operator uses the class name instead of the raw value.
Measurement
Classification
{ "type": "PieChart", "params": { "type": "count", "columnName": "name", "donut": false }, "sources": { "vector": { "type": "OgrSource", "params": { "data": { "type": "internal", "datasetId": "a626c880-1c41-489b-9e19-9596d129859c" } } } } }