getCategories
Last updated
Was this helpful?
Last updated
Was this helpful?
A Category model is a data model that represents a list of labeled data points for categorical data. Suitable for charts such as grouped bar charts, pie charts, or tree charts.
The getCategories
model inherits all options from the , plus:
column: the name of the column that will be used to generate the categories.
operation: the aggregation that will be performed on the operationColumn
. Accepted values are:
count
avg
min
max
sum
operationColumn (optional): this is the column that will be aggregated for each category in the specified column
.
An array of objects where each object is a pair of category name and its corresponding value:
The response can be then mapped to any charting library to create data visualizations like a bar chart.