stylish Chart Color
Returns a color from the theme's categorical chart palette by index.
The palette wraps cyclically: if index exceeds the palette size the lookup wraps around via modulo, so callers never need to bounds-check. Negative indices are not supported and will throw IndexOutOfBoundsException. Use this to assign consistent, theme-aware colors to chart series or pie slices without hard-coding hex values.
Return
The Color at the resolved palette position.
Parameters
index
Zero-based position in the categorical palette. Values beyond the palette length wrap around.