HistogramChartStyle

class HistogramChartStyle(val chartContainerStyle: ChartContainerStyle, val bars: BarBarsStyle, val range: BarRangeStyle, val axes: AxesStyle, val selection: BarSelectionStyle, val zoomControlsVisible: Boolean)(source)

Immutable v3 style for io.github.hdcharts.histogram.HistogramChart.

Histograms render pre-binned counts in equal-width adjacent bars. Histogram defaults enforce contiguous bins and a zero baseline by default; consumers can still override spacing, minimum bar width, and explicit range. The chart-level selection state is a top-level composable parameter, not part of this style.

Constructors

Link copied to clipboard
constructor(chartContainerStyle: ChartContainerStyle, bars: BarBarsStyle, range: BarRangeStyle, axes: AxesStyle, selection: BarSelectionStyle, zoomControlsVisible: Boolean)

Properties

Link copied to clipboard

Axis lines, grid, X/Y labels, and their shared visibility.

Link copied to clipboard

Bar visual block. Default HistogramChartDefaults.bars produces adjacent bins (zero spacing) and a 10.dp minimum bar width; call sites can override.

Link copied to clipboard

The shared container presentation.

Link copied to clipboard

Optional fixed Y-axis range. Defaults to a zero minimum so a bin count of zero renders at the baseline.

Link copied to clipboard

Selection indicator configuration.

Link copied to clipboard

Whether zoom controls appear in the chart header.