Documentation / @ripl/charts / HistogramChartOptions
Interface: HistogramChartOptions<TData>
Defined in: charts/src/charts/histogram.ts:69
Options for configuring a HistogramChart.
Extends
CartesianChartOptions<TData>
Type Parameters
| Type Parameter | Default type |
|---|---|
TData | unknown |
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
animation? | boolean | Partial<ChartAnimationOptions> | Animation configuration, or a boolean toggling all transitions. See ChartAnimationOptions. | - | CartesianChartOptions.animation | charts/src/core/chart.ts:89 |
autoRender? | boolean | Whether the chart renders automatically on construction and after every Chart.update. Defaults to true. | - | CartesianChartOptions.autoRender | charts/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? | number | Target number of bins (ignored when thresholds is given). Defaults to Sturges' rule. | - | - | charts/src/charts/histogram.ts:75 |
borderRadius? | number | Corner radius in pixels applied to the top of each bar. Defaults to 2. | - | - | charts/src/charts/histogram.ts:81 |
color? | string | Bar colour (defaults to the first palette colour). | - | - | charts/src/charts/histogram.ts:79 |
crosshair? | ChartCrosshairInput | Crosshair configuration, or a boolean toggle. See ChartCrosshairInput. | - | CartesianChartOptions.crosshair | charts/src/core/cartesian.ts:129 |
data | TData[] | The dataset whose values are binned into the histogram. | - | - | charts/src/charts/histogram.ts:71 |
format? | ValueFormatInput | Format applied to bin bounds shown in tooltips. | - | - | charts/src/charts/histogram.ts:89 |
grid? | ChartGridInput | Background grid configuration (true/false or detailed grid options). | CartesianChartOptions.grid | - | charts/src/charts/histogram.ts:83 |
legend? | ChartLegendInput | Legend configuration, a position string, or a boolean toggle. See ChartLegendInput. | - | CartesianChartOptions.legend | charts/src/core/cartesian.ts:127 |
navigator? | boolean | NavigatorInteractions | Enables 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.navigator | charts/src/core/cartesian.ts:137 |
padding? | Partial<ChartPadding> | Space reserved around the chart, per edge, in pixels. | - | CartesianChartOptions.padding | charts/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.title | charts/src/core/chart.ts:87 |
tooltip? | ChartTooltipInput | Hover tooltip configuration (true/false or detailed tooltip options). | CartesianChartOptions.tooltip | - | charts/src/charts/histogram.ts:85 |
value | NumericAccessor<TData> | The numeric field (or accessor) to bin. | - | - | charts/src/charts/histogram.ts:73 |