BarBarsStyle

data class BarBarsStyle(val color: Color, val colors: ImmutableList<Color>, val alpha: Float, val space: Dp, val minBarWidth: Dp)(source)

Bar visual configuration shared by vertical bar and histogram charts.

Constructors

Link copied to clipboard
constructor(color: Color, colors: ImmutableList<Color>, alpha: Float, space: Dp, minBarWidth: Dp)
constructor(color: Color, colors: List<Color>, alpha: Float, space: Dp, minBarWidth: Dp)

Copies colors into an immutable palette. Use an immutable list with copy.

Properties

Link copied to clipboard

The alpha value applied to rendered bars. Replaces the source color alpha.

Link copied to clipboard

The fallback bar color when colors is empty.

Link copied to clipboard
val colors: ImmutableList<Color>

Optional explicit per-bar colors. Empty means use color / generated shades; non-empty must match the source bar count.

Link copied to clipboard

The minimum width of each bar.

Link copied to clipboard
val space: Dp

The spacing between bars.