TColorPalettes.ApplyPalette

TColorPalettes.ApplyPalette
TColorPalettes

procedure ApplyPalette(Const Chart: TCustomAxisPanel; Index: Integer); overload;

Unit
Chart

Description
Replaces the Chart color palette with the pre-defined one specified by an array of colors.

Series colors and series point colors are referenced to Palette when the color is "clTeeColor".

ColorPalettes.ApplyPalette( Chart1, 5 );

The current list of color palettes and their indexes are:

1 Excel Palette
2 Victorian Palette
3 Pastels Palette
4 Solid Palette
5 Classic Palette
6 Web Palette
7 Modern Palette
8 Rainbow Palette
9 WindowsXP Palette
10 MacOS Palette
11 Windows Vista Palette
12 TeeChart 2007