BarChartStyle

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

Immutable v3 style for vertical io.github.hdcharts.bar.BarChart.

Configuration is grouped into bars, range, axes, and selection blocks. The chart-level selection state is a top-level composable parameter, not part of this style. Compose with BarChartDefaults.style for theme-aware defaults.

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 (colors, spacing, minimum width).

Link copied to clipboard

The shared container presentation.

Link copied to clipboard

Optional fixed Y-axis range.

Link copied to clipboard

Selection indicator configuration.

Link copied to clipboard

Whether zoom controls appear in the chart header.

Functions

Link copied to clipboard

Returns this with alphas, sizes, and grid steps clamped to drawable values.