Chart Gradients
Ready-made ChartGradients with evenly spaced colors.
Functions
Link copied to clipboard
Returns a top-to-bottom fade from each shape's own color to that color at endAlpha. On bars with GradientSpan.Shape, that is from the value edge to the baseline.
Link copied to clipboard
Returns a left-to-right gradient through colors.
Link copied to clipboard
fun linear(angleDegrees: Float, colors: List<Color>, span: GradientSpan = GradientSpan.Shape): ChartGradient.Linear
Returns a gradient through colors at angleDegrees, clockwise from left-to-right.
Link copied to clipboard
Returns a top-to-bottom gradient through colors. With GradientSpan.Shape, that is from each shape's top edge to its bottom edge. Bars below the baseline mirror it vertically.