createGradientLine
fun createGradientLine(lineColor: Color, lineWidth: Float = MEDIUM_LINE_WIDTH_DP, interpolator: LineCartesianLayer.Interpolator = LineCartesianLayer.Interpolator.cubic()): LineCartesianLayer.Line(source)
Creates a line with a gradient area fill effect. Ideal for emphasising a single series or showing magnitude. The gradient goes from the line color at ~30% opacity to near-transparent.
Return
Configured LineCartesianLayer.Line
Parameters
lineColor
The primary color of the line
lineWidth
Width of the line in dp