Still have questions?
Contact support
You are looking at an outdated 7.11.0 version of this document. Switch to the 7.14.0 version to see the up to date information.

Palettes

AnyChart uses palettes for auto coloring. There are 4 types of palettes: Color palettes, Hatch palettes and Marker palettes, each palette is a list of predefined items: colors, hatch fills or markers.

You can create any number of your own palettes, give them the unique names and apply where needed, see distinctColors(), hatchFills(), markers() and rangeColors() for that.

Also, you can use predefined AnyChart distinct color palettes from anychart.palettes:

// set palette to a chart:
chart.palette = anychart.palettes.defaultPalette;

// Other available palettes:
// anychart.palettes.earth 
// anychart.palettes.monochrome 
// anychart.palettes.provence 
// anychart.palettes.morning 
// anychart.palettes.coffee 
// anychart.palettes.wines 
// anychart.palettes.pastel 
// anychart.palettes.blue 
// anychart.palettes.glamour 
// anychart.palettes.sea

Here is a sample of a pie chart, click slices to change palettes:

JsFiddle Playground