style
Returns a StackedBarChartStyle with the provided parameters or their default values.
Parameters
The color to be used for the bars in the chart. Defaults to the primary color of the MaterialTheme.
The alpha value applied to rendered bar segments. Defaults to 0.4f in light theme and 0.6f in dark theme.
The space between the bars in the chart. Defaults to 10.dp.
The colors to be used for the bars in the chart. Defaults to an empty list.
The minimum width of each bar. Defaults to 10.dp.
Whether zoom controls are shown in expanded dense mode. Defaults to true.
Whether Y-axis labels are shown. Defaults to true.
The color of Y-axis labels. Defaults to a theme-based onSurface variant.
The text size of Y-axis labels. Defaults to 11.sp.
Number of Y-axis labels. Defaults to 5.
Whether X-axis labels are shown. Defaults to true.
The color of X-axis labels. Defaults to a theme-based onSurface variant.
The text size of X-axis labels. Defaults to 11.sp.
Maximum number of X-axis labels to display. Defaults to 6.
Whether the selection indicator line is shown. Defaults to true.
The color of the selection indicator line. Defaults to a theme-based primary variant.
The stroke width of the selection indicator line. Defaults to 1f.
The style to be applied to the chart view. Defaults to the default style of ChartViewDefaults.