PieChartSlicesStyle

data class PieChartSlicesStyle(val alpha: Float, val baseColor: Color, val colors: ImmutableList<Color>)(source)

Slice configuration for a PieChartStyle.

Constructors

Link copied to clipboard
constructor(alpha: Float, baseColor: Color, colors: ImmutableList<Color>)

Properties

Link copied to clipboard

The alpha value applied to rendered pie slices.

Link copied to clipboard

The base color used to generate shades when colors is empty.

Link copied to clipboard
val colors: ImmutableList<Color>

The colors the chart draws for slices, in slice order. When empty, a shade is generated for every slice from baseColor. When set, its count must match the slice count.

Functions

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

Returns the default colors for sliceCount slices, before alpha is applied: colors when set, or generated shades of baseColor when it is empty.