LineChart

fun LineChart(dataCollection: ChartDataCollection, dotColor: Color, lineColor: Color, modifier: Modifier = Modifier, backgroundColor: Color = Color.White, padding: Dp = 16.dp, axisConfig: AxisConfig = ChartDefaults.axisConfigDefaults(), lineConfig: LineConfig = LineChartDefaults.defaultConfig(), radiusScale: Float = 0.02f)

A composable function that displays a line chart.

Parameters

dataCollection

The collection of chart data points.

dotColor

The color of the data points.

lineColor

The color of the line in the chart.

modifier

The modifier for the chart.

backgroundColor

The background color of the chart.

padding

The padding around the chart.

axisConfig

The configuration for the chart's axes.

lineConfig

The configuration for the line in the chart.

radiusScale

The scale factor for the radius of the data points.


fun LineChart(dataCollection: ChartDataCollection, modifier: Modifier = Modifier, padding: Dp = 16.dp, axisConfig: AxisConfig = ChartDefaults.axisConfigDefaults(), radiusScale: Float = 0.02f, lineConfig: LineConfig = LineChartDefaults.defaultConfig(), chartColors: LineChartColors = LineChartDefaults.defaultColor())

A composable function that displays a line chart.

Parameters

dataCollection

The collection of chart data points.

modifier

The modifier for the chart.

padding

The padding around the chart.

axisConfig

The configuration for the chart's axes.

radiusScale

The scale factor for the radius of the data points.

lineConfig

The configuration for the line in the chart.

chartColors

The colors used in the chart.