toStylishChartColors

Derives a StylishChartColors palette from this ColorScheme.

Selects six scheme roles — primary, tertiary, secondary, error, onSurfaceVariant, and outline — in an order that maximizes hue separation for adjacent chart segments.

Return

A StylishChartColors whose StylishChartColors.categorical list contains the selected colors.

See also