The ClassHistogram is a plot operator that computes a histogram plot either over categorical attributes of a vector dataset or categorical values of a raster source. The output is a plot in Vega-Lite specification.
ClassHistogram
For instance, you want to plot the frequencies of the classes of a categorical attribute of a feature collection. Then you can use a class histogram to visualize and assess this.
columnName
string
"temperature"
The operator consumes either one vector or one raster operator.
source
SingleRasterOrVectorSource
The operator returns an error if…
Measurement
The operator returns an error if
The operator only uses values of the categorical Measurement. It ignores missing or no-data values and values that are not covered by the Measurement.
{ "type": "ClassHistogram", "params": { "columnName": "foobar" }, "sources": { "vector": { "type": "OgrSource", "params": { "data": { "type": "internal", "datasetId": "a626c880-1c41-489b-9e19-9596d129859c" } } } } }