bars

fun bars(color: Color = MaterialTheme.colorScheme.primary, colors: List<Color> = emptyList(), alpha: Float = defaultChartAlpha(), space: Dp = 0.dp, minBarWidth: Dp = 10.dp): BarBarsStyle(source)

Returns a BarBarsStyle with adjacent histogram bins by default.

Parameters

color

The fallback bar color.

colors

Optional explicit per-bin colors; must match bin count or be empty.

alpha

The bar alpha. Defaults to defaultChartAlpha().

space

The spacing between bins. Defaults to 0.dp.

minBarWidth

The minimum width of each bin. Defaults to 10.dp.