style

fun style(barColor: Color = MaterialTheme.colorScheme.primary, space: Dp = 10.dp, barColors: List<Color> = emptyList(), chartViewStyle: ChartViewStyle = ChartViewDefaults.style()): StackedBarChartStyle

Returns a StackedBarChartStyle with the provided parameters or their default values.

Parameters

barColor

The color to be used for the bars in the chart. Defaults to the primary color of the MaterialTheme.

space

The space between the bars in the chart. Defaults to 10.dp.

barColors

The colors to be used for the bars in the chart. Defaults to an empty list.

chartViewStyle

The style to be applied to the chart view. Defaults to the default style of ChartViewDefaults.