Series and Colors - Steema/TeeChartJS GitHub Wiki

Series and Colors

Charts have a palette property (an array [ ] of colors in string format).

This Palette is used by series to paint its points, and by chart legend to display series items symbols.

Chart1.palette = [ “red”, “blue”, “green”, “yellow” ];

Colors in the palette are reused in a circular way when more series or more points in a series exist than the size of the palette.

Series also contain a palette of colors to override the chart palette. By default is a null empty array so they share the chart palette.