Interface: HistogramSeriesOptions
Extends
Omit<SeriesBaseOptions<HistogramTooltipRendererParams>,"yField"|"name">.BinningOptions
Properties
aggregation?
optionalaggregation?:"count"|"sum"|"mean"
binCount?
optionalbinCount?:number|BinRule
Number of bins, or the rule that picks it. Default 'auto'.
Inherited from
binInclusive?
optionalbinInclusive?:BinInclusive
'left' — [x0, x1), the last bin closed; 'right' — (x0, x1], the first one closed.
Inherited from
binOrigin?
optionalbinOrigin?:number
Value the grid is aligned to (default 0): edges fall on binOrigin + k·width.
Inherited from
bins?
optionalbins?: [number,number][]
Explicit edges: [[min,max], ...]. Wins over every other option here.
Inherited from
binWidth?
optionalbinWidth?:number|TimeBinUnit
Bin width. Wins over binCount: the step is the intent, the count follows. A calendar unit ('month', 'week', …) bins dates instead of numbers — the values are read as dates and the grid is aligned in UTC, where the ticks of the time axis are.
Inherited from
domain?
optionaldomain?: [number,number]
Range to bin; values outside it are ruled by outliers. Default — the data extent.
Inherited from
fill?
optionalfill?:string
fillOpacity?
optionalfillOpacity?:number
fills?
optionalfills?:string[]
Colours of the groups; without it — the theme palette.
groupField?
optionalgroupField?:string
Field that splits the data into distributions of its own, one colour each.
groupGap?
optionalgroupGap?:number
Gap between side-by-side bars of one bin, as a fraction of a slot (groupMode: 'grouped').
groupMode?
optionalgroupMode?:HistogramGroupMode
How those distributions share a bin (default 'stacked').
id?
optionalid?:string
Inherited from
label?
optionallabel?:Switchable&FontOptions&LabelOverlapOptions&object
Value labels: same placements as bar (top, inner-top, center, …).
Type Declaration
formatter?
optionalformatter?: (params) =>string
Parameters
params
count
number
group?
unknown
The value of groupField this bar belongs to; undefined without grouping.
raw
number
value
number
x0
number
x1
number
Returns
string
placement?
optionalplacement?:RectLabelPlacement
name?
optionalname?:string
nice?
optionalnice?:boolean
Round the computed step to 1/2/5×10ⁿ (default true; ignored with binWidth).
Inherited from
normalize?
optionalnormalize?:HistogramNormalize
What a bar's height stands for: the value itself, a share, a density, a running total.
normalizeWithin?
optionalnormalizeWithin?:HistogramNormalizeWithin
Whose total a share is measured against: the whole chart or each group.
outliers?
optionaloutliers?:BinOutliers
Values outside domain: dropped (default) or piled into the edge bins.
Inherited from
showInLegend?
optionalshowInLegend?:boolean
Inherited from
LineSeriesOptions.showInLegend
stroke?
optionalstroke?:string
strokeWidth?
optionalstrokeWidth?:number
tooltip?
optionaltooltip?:Switchable&object
Type Declaration
renderer?
optionalrenderer?: (params) =>string|TooltipContentData
Parameters
params
HistogramTooltipRendererParams
Returns
string | TooltipContentData
Inherited from
Omit.tooltip
type
type:
"histogram"
visible?
optionalvisible?:boolean
Inherited from
xField
xField:
string
Numeric field used to build the bins.
Overrides
xName?
optionalxName?:string
Inherited from
yField?
optionalyField?:string
Aggregation field; without it the count is used.