createStyledLine
fun createStyledLine(lineColor: Color, lineWidth: Float = MEDIUM_LINE_WIDTH_DP, interpolator: LineCartesianLayer.Interpolator = LineCartesianLayer.Interpolator.cubic()): LineCartesianLayer.Line(source)
Creates a clean timeseries line — thin, smooth, with no point markers. This is the default style recommended by Oscar's UX guidance: "thin lines, and maybe a dot where the cursor is."
Return
Configured LineCartesianLayer.Line
Parameters
lineColor
The color of the line
lineWidth
Width of the line in dp
interpolator
The line interpolation strategy. Defaults to monotone cubic which won't overshoot between sparse data points (unlike catmull-rom). Use Sharp for discrete/integer metrics like hop counts.