LineSpec
Parameters
the color of the line.
the thickness of the line (in dp).
an optional DynamicShader to use for the area below the line.
the stroke cap for the line.
an optional Component that can be drawn at a given point on the line.
the size of the point (in dp).
an optional TextComponent to use for data labels.
the vertical position of data labels relative to the line.
the ValueFormatter to use for data labels.
the rotation of data labels (in degrees).
the PointConnector for the line.
Deprecated (with error)
Rather than using this constructor and its `cubicStrength` parameter, use the primary constructor and provide a `DefaultPointConnector` instance with a custom `cubicStrength` via the `pointConnector` parameter.
Replace with
import com.patrykandpatrick.vico.core.chart.DefaultPointConnector
LineSpec(
lineColor = lineColor,
lineThicknessDp = lineThicknessDp,
lineBackgroundShader = lineBackgroundShader,
lineCap = lineCap,
point = point,
pointSizeDp = pointSizeDp,
dataLabel = dataLabel,
dataLabelVerticalPosition = dataLabelVerticalPosition,
dataLabelValueFormatter = dataLabelValueFormatter,
dataLabelRotationDegrees = dataLabelRotationDegrees,
pointConnector = DefaultPointConnector(cubicStrength = cubicStrength),
)
Defines the appearance of a line in a line chart.
Parameters
the color of the line.
the thickness of the line (in dp).
an optional DynamicShader to use for the area below the line.
the stroke cap for the line.
the strength of the cubic bezier curve between each point on the line.
an optional Component that can be drawn at a given point on the line.
the size of the point (in dp).
an optional TextComponent to use for data labels.
the vertical position of data labels relative to the line.
the ValueFormatter to use for data labels.
the rotation of data labels in degrees.