lineSpec
Creates a LineChart.LineSpec for use in LineCharts.
Parameters
the color of the line.
the thickness of the line.
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.
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 LineSpec.PointConnector for the line.
See also
Deprecated (with error)
Rather than using this `lineSpec` function and its `cubicStrength` parameter, use the `lineSpec` function with the `pointConnector` parameter 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,
lineThickness = lineThickness,
lineBackgroundShader = lineBackgroundShader,
lineCap = lineCap,
point = point,
pointSize = pointSize,
dataLabel = dataLabel,
dataLabelVerticalPosition = dataLabelVerticalPosition,
dataLabelValueFormatter = dataLabelValueFormatter,
dataLabelRotationDegrees = dataLabelRotationDegrees,
pointConnector = DefaultPointConnector(cubicStrength = cubicStrength),
)
Creates a LineChart.LineSpec for use in LineCharts.
Parameters
the color of the line.
the thickness of the line.
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 key point on the line.
an optional Component that can be drawn at a given point on the line.
the size of the point.
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.