Skip to content

Documentation / @ripl/charts / HistogramChartOptions

Interface: HistogramChartOptions<TData>

Defined in: charts/src/charts/histogram.ts:69

Options for configuring a HistogramChart.

Extends

Type Parameters

Type ParameterDefault type
TDataunknown

Properties

PropertyTypeDescriptionOverridesInherited fromDefined in
animation?boolean | Partial<ChartAnimationOptions>Animation configuration, or a boolean toggling all transitions. See ChartAnimationOptions.-CartesianChartOptions.animationcharts/src/core/chart.ts:89
autoRender?booleanWhether the chart renders automatically on construction and after every Chart.update. Defaults to true.-CartesianChartOptions.autoRendercharts/src/core/chart.ts:83
axis?ChartAxisInput<TData>Axis configuration for the value and frequency axes.CartesianChartOptions.axis-charts/src/charts/histogram.ts:87
bins?numberTarget number of bins (ignored when thresholds is given). Defaults to Sturges' rule.--charts/src/charts/histogram.ts:75
borderRadius?numberCorner radius in pixels applied to the top of each bar. Defaults to 2.--charts/src/charts/histogram.ts:81
color?stringBar colour (defaults to the first palette colour).--charts/src/charts/histogram.ts:79
crosshair?ChartCrosshairInputCrosshair configuration, or a boolean toggle. See ChartCrosshairInput.-CartesianChartOptions.crosshaircharts/src/core/cartesian.ts:129
dataTData[]The dataset whose values are binned into the histogram.--charts/src/charts/histogram.ts:71
format?ValueFormatInputFormat applied to bin bounds shown in tooltips.--charts/src/charts/histogram.ts:89
grid?ChartGridInputBackground grid configuration (true/false or detailed grid options).CartesianChartOptions.grid-charts/src/charts/histogram.ts:83
legend?ChartLegendInputLegend configuration, a position string, or a boolean toggle. See ChartLegendInput.-CartesianChartOptions.legendcharts/src/core/cartesian.ts:127
navigator?boolean | NavigatorInteractionsEnables pan/zoom (and optionally brush) navigation on the plot. true turns on wheel-zoom and click-drag pan; an object configures each interaction individually. The chart auto-creates a DOMNavigator on its context and rescales the axis domains as the view changes — no data rebuild. Access the underlying controller via chart.navigator for imperative framing (centerOn/fitBounds) or brush-and-link.-CartesianChartOptions.navigatorcharts/src/core/cartesian.ts:137
padding?Partial<ChartPadding>Space reserved around the chart, per edge, in pixels.-CartesianChartOptions.paddingcharts/src/core/chart.ts:85
thresholds?number[]Explicit bin boundaries; overrides bins.--charts/src/charts/histogram.ts:77
title?string | Partial<ChartTitleOptions>Chart title as plain text, or a ChartTitleOptions object for full control.-CartesianChartOptions.titlecharts/src/core/chart.ts:87
tooltip?ChartTooltipInputHover tooltip configuration (true/false or detailed tooltip options).CartesianChartOptions.tooltip-charts/src/charts/histogram.ts:85
valueNumericAccessor<TData>The numeric field (or accessor) to bin.--charts/src/charts/histogram.ts:73