rememberLineCartesianLayer
fun rememberLineCartesianLayer(lines: List<LineCartesianLayer.LineSpec> = vicoTheme.lineCartesianLayerColors.map { rememberLineSpec(remember { DynamicShader.color(it) }) }, spacing: Dp = Defaults.POINT_SPACING.dp, axisValueOverrider: AxisValueOverrider = remember { AxisValueOverrider.auto() }, verticalAxisPosition: AxisPosition.Vertical? = null, drawingModelInterpolator: DrawingModelInterpolator<LineCartesianLayerDrawingModel.PointInfo, LineCartesianLayerDrawingModel> = remember { DefaultDrawingModelInterpolator() }): LineCartesianLayer
Creates a LineCartesianLayer.
Parameters
lines
the LineCartesianLayer.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.
axisValueOverrider
overrides the x and y ranges.
verticalAxisPosition
the position of the VerticalAxis with which the LineCartesianLayer should be associated. Use this for independent CartesianLayer scaling.
drawingModelInterpolator
interpolates the LineCartesianLayer’s LineCartesianLayerDrawingModels.