StackedAreaFillStyle

data class StackedAreaFillStyle(val color: Color, val colors: ImmutableList<Color>, val alpha: Float, val bezier: Boolean, val gradient: ChartGradient?)(source)

Fill configuration for the stacked layers.

Constructors

Link copied to clipboard
constructor(color: Color, colors: ImmutableList<Color>, alpha: Float, bezier: Boolean, gradient: ChartGradient?)
constructor(color: Color, colors: List<Color>, alpha: Float, bezier: Boolean, gradient: ChartGradient?)

Copies the supplied list into an immutable list.

Properties

Link copied to clipboard

Fill alpha in 0..1. Replaces solid color alpha and multiplies gradient alphas.

Link copied to clipboard

Draws each layer's edges as smooth curves when true, or as straight segments between points when false.

Link copied to clipboard

Single-series fill color and base color for generated palettes.

Link copied to clipboard
val colors: ImmutableList<Color>

Optional multi-series palette; when set, its count must match the series count. A single series uses color, even when a one-color palette is supplied.

Link copied to clipboard

Shared gradient that paints every layer. null draws solid fills.

Functions

Link copied to clipboard
fun resolveColors(seriesCount: Int): ImmutableList<Color>

Returns the fill colors the chart draws for seriesCount series, before alpha is applied.