Interface: HistogramItemStylerParams
What the item styler of a histogram is handed: a bin, not a row — its bounds, its height and the group it belongs to.
Properties
binIndex
binIndex:
number
count
count:
number
Rows that landed in the bin.
fill
fill:
string
The color of the bar's group — what it would have without the styler.
group?
optionalgroup?:unknown
Value of groupField for this bar; undefined without grouping.
highlighted
highlighted:
boolean
index
index:
number
Index of the bar, counted the way events and the tooltip count them — bin by bin, group within bin.
raw
raw:
number
The aggregate before normalization.
stroke
stroke:
string|undefined
value
value:
number
What the bar draws — the aggregate restated by normalize.
x0
x0:
number
Lower bound of the bin.
x1
x1:
number
Upper bound of the bin.