bars
fun bars(color: Color = StyleDefaults.seriesColor, colors: List<Color> = emptyList(), gradient: ChartGradient? = null, alpha: Float = StyleDefaults.seriesAlpha, space: Dp = StyleDefaults.histogramBarSpacing, minBarWidth: Dp = StyleDefaults.minBarWidth): 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.
gradient
Optional gradient that paints the bins. Defaults to null, which draws solid bins.
alpha
The bar alpha. Defaults to 1f.
space
The spacing between bins. Defaults to 0.dp.
min Bar Width
The minimum width of each bin. Defaults to 10.dp.