lineChart
fun lineChart(lines: List<LineChart.LineSpec> = currentChartStyle.lineChart.lines, spacing: Dp = currentChartStyle.lineChart.spacing, decorations: List<Decoration>? = null, persistentMarkers: Map<Float, Marker>? = null, axisValuesOverrider: AxisValuesOverrider<ChartEntryModel>? = null, targetVerticalAxisPosition: AxisPosition.Vertical? = null, drawingModelInterpolator: DrawingModelInterpolator<LineChartDrawingModel.PointInfo, LineChartDrawingModel> = remember { DefaultDrawingModelInterpolator() }): LineChart
Creates a LineChart.
Parameters
lines
the LineChart.LineSpecs to use for the lines. This list is iterated through as many times as there are lines.
spacing
the distance between neighboring major entries’ points.
decorations
the list of Decorations that will be added to the LineChart.
persistentMarkers
maps x-axis values to persistent Markers.
axisValuesOverrider
overrides the minimum and maximum x-axis and y-axis values.
targetVerticalAxisPosition
if this is set, any AxisRenderer with an AxisPosition equal to the provided value will use the ChartValues provided by this chart. This is meant to be used with ComposedChart.
drawingModelInterpolator
interpolates the LineChart’s LineChartDrawingModels.