StylishChartColors

data class StylishChartColors(val categorical: List<Color>)

Categorical color palette for chart and data-visualization components.

Provides a sequence of visually distinct colors derived from the active ColorScheme, ensuring charts remain on-brand and adapt to light/dark themes automatically. Obtain an instance via MaterialTheme.stylishChartColors or ColorScheme.toStylishChartColors.

See also

Constructors

Link copied to clipboard
constructor(categorical: List<Color>)

Properties

Link copied to clipboard

An ordered list of colors intended for assigning to chart series or categories. The ordering prioritizes perceptual distinctiveness: primary, tertiary, secondary, error, onSurfaceVariant, outline.