This PR adds support for categorical data to the histogram.
Now you can provide a 'category' property on each data element.
Breaking change: the data passed in the event 'selectionChanged' has been changed because of the categorical nuances.
Now it returns an object with:
A type field: indicates which type of histogram it is
A selection: an array of strings (categories) or numbers (continuous). Length 2 for continuous (range) and indeterminate for categories (array of categories)
A payload: The equivalent of selection but with the whole HistogramData, instead of just the selection values.
master -> v2 -> histogram-clear -> histogram-tooltip -> click-bucket-select -> histogram-categorical-input
This PR adds support for categorical data to the histogram.
Now you can provide a 'category' property on each data element.
Breaking change: the data passed in the event 'selectionChanged' has been changed because of the categorical nuances.
Now it returns an object with:
type
field: indicates which type of histogram it isselection
: an array of strings (categories) or numbers (continuous). Length 2 for continuous (range) and indeterminate for categories (array of categories)payload
: The equivalent ofselection
but with the whole HistogramData, instead of just the selection values.