bars
fun bars(color: Color = StyleDefaults.seriesColor, colors: List<Color> = emptyList(), gradient: ChartGradient? = null, alpha: Float = StyleDefaults.seriesAlpha, space: Dp = StyleDefaults.barSpacing, minBarWidth: Dp = StyleDefaults.minBarWidth): BarBarsStyle(source)
Returns a BarBarsStyle with bar-aware defaults.
Parameters
color
The fallback bar color.
colors
Optional explicit per-bar colors; must match bar count or be empty.
gradient
Optional gradient that paints the bars. Defaults to null, which draws solid bars.
alpha
The bar alpha. Defaults to 1f.
space
The spacing between bars. Defaults to 10.dp.
min Bar Width
The minimum width of each bar. Defaults to 10.dp.