style
Returns a BarChartStyle 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 bars. 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.
Optional fixed minimum value for the chart scale. Defaults to null.
Optional fixed maximum value for the chart scale. Defaults to null.
The minimum width of each bar. Defaults to 10.dp.
Whether zoom controls are shown. Defaults to true.
Whether horizontal grid lines are shown. Defaults to true.
Number of horizontal grid intervals. Defaults to 4.
The color of grid lines. Defaults to a theme-based onSurface variant.
The stroke width of grid lines. Defaults to 1f.
Whether the left Y-axis line and horizontal baseline are shown. Defaults to true.
The color of the axes. Defaults to a theme-based onSurface variant.
The stroke width of the axes. Defaults to 1f.
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 selected bar indicator line is shown. Defaults to true.
The color of the selected bar indicator line. Defaults to a theme-based primary variant.
The stroke width of the selected bar indicator line. Defaults to 1f.
The style to be applied to the chart view. Defaults to the default style of ChartViewDefaults.
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.