style

fun style(pointColor: Color = defaultPointColor(), pointSize: Float = 10.0f, pointVisible: Boolean = true, lineColor: Color = MaterialTheme.colorScheme.primary, lineColors: List<Color> = emptyList(), bezier: Boolean = true, dragPointSize: Float = 7.0f, dragPointVisible: Boolean = true, dragActivePointSize: Float = 12.0f, dragPointColor: Color = defaultDragPointColor(), chartViewStyle: ChartViewStyle = ChartViewDefaults.style()): LineChartStyle

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

Parameters

pointColor

The color of the points on the line chart. Defaults to the tertiary color of the MaterialTheme.

pointSize

The size of the points on the line chart. Defaults to 10f.

pointVisible

A boolean indicating whether the points on the line chart are visible. Defaults to true.

lineColor

The color of the line in the line chart. Defaults to the primary color of the MaterialTheme.

lineColors

The colors of the lines in the line chart. Defaults to an empty list.

bezier

A boolean indicating whether the line chart should be drawn with bezier curves. Defaults to true.

dragPointSize

The size of the drag point on the line chart. Defaults to 7f.

dragPointVisible

A boolean indicating whether the drag point on the line chart is visible. Defaults to true.

dragActivePointSize

The size of the active drag point on the line chart. Defaults to 12f.

dragPointColor

The color of the drag point on the line chart. Defaults to the tertiary color of the MaterialTheme.

chartViewStyle

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