getHistogram
Last updated
Was this helpful?
Last updated
Was this helpful?
A Histogram model is a data model that represents a list of labeled data points for bins (ranges) of data, defined as ticks over a numerical range, Suitable for histogram charts.
The getHistogram
model inherits all options from the , plus:
column: the name of the column that you will run the statistical operation on. It also accepts the *
value, that will
ticks: the list of numerical upper bound thresholds that will be used to create the bins. There's no maximum number of ticks.
operation: the aggregation that will be performed on the column
for each range bin. Accepted values are:
count
avg
min
max
sum
An ordered array containing the value for each histogram bin.
The response can be then mapped to any HTML element, but commonly it will be mapped to a a charting library to create histogram charts.