lineComponent

fun lineComponent(color: Color, thickness: Dp, shape: Shape = Shapes.rectShape, strokeWidth: Dp = 0.dp, strokeColor: Color = Color.Transparent, dynamicShader: DynamicShader? = null, margins: Dimensions = emptyDimensions()): LineComponent
fun lineComponent(color: Color, thickness: Dp, shape: Shape, strokeWidth: Dp = 0.dp, strokeColor: Color = Color.Transparent, dynamicShader: DynamicShader? = null, margins: Dimensions = emptyDimensions()): LineComponent

Deprecated (with error)

Use `com.patrykandpatrick.vico.compose.component.lineComponent` instead.

Creates a LineComponent.

Parameters

color

the background color.

thickness

the thickness of the line.

shape

the Shape to use for the line.

strokeWidth

the stroke width.

strokeColor

the stroke color.

dynamicShader

an optional DynamicShader to apply to the line.

margins

the margins of the line.