style
Returns a LineChartStyle with the provided parameters or their default values.
Parameters
The color of the points on the line chart. Defaults to the tertiary color of the MaterialTheme.
The size of the points on the line chart. Defaults to 9f.
A boolean indicating whether the points on the line chart are visible. Defaults to false.
The color of the line in the line chart. Defaults to the primary color of the MaterialTheme.
The alpha value applied to rendered line colors. Defaults to 0.4f in light theme and 0.6f in dark theme.
The colors of the lines in the line chart. Defaults to an empty list.
A boolean indicating whether the line chart should be drawn with bezier curves. Defaults to true.
The size of the drag point on the line chart. Defaults to 7f.
A boolean indicating whether the drag point on the line chart is visible. Defaults to true.
The size of the active drag point on the line chart. Defaults to 12f.
The color of the drag point on the line chart. Defaults to the tertiary color of the MaterialTheme.
Whether chart axes 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 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 dense-mode zoom controls are shown. Defaults to true.
The style to be applied to the chart view. Defaults to the default style of ChartViewDefaults.
Dense zoom/scroll properties are applied in morph mode and ignored in timeline mode.