JavaScript
A5.chartpalettes Namespace
Description
The namespace for chart palettes.
Discussion
The palettes namespace can be used to create named palettes that can then be used to style charts without having to explicitly set colors and effects. A default "base" palette is created. To create new palettes a A5.chart Palette object is added to the A5.chart.palettes namespace with the name of the property of the palette object being the name it can be referenced by when generating a chart. See A5.chart.palettes Palette Object.
- Name
- Description
- A5.chart.palettes.Palette Object
Definition of a chart palette.
Example
// create a new palette named "blue" A5.chart.palettes['blue'] = { text: { color: '', outline: { color: '', width: 1, halo: 4}}, lines: {base: '#999', major: '#aaa', minor: '#bbb'}, groups: [ {line: '#2D2ED2', fill: '#5758DB'}, {line: '#2C50D3', fill: '#5673DC'}, {line: '#2468DB', fill: '#5086E2'}, {line: '#2693D9', fill: '#51A9E1'}, {line: '#25AFDA', fill: '#51BFE1'} ] }