I\'m using highcharts to make a piechart but I\'m having trouble loading a custom color set for my chart.
Here is my code:
Highcharts.setOptions({
colors: ['#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4']
});
Look the following example http://jsfiddle.net/8QufV/
For those of you that prefer to initialize the color in the configs, you could simply put the colors in the plotOptions portion of the config object like so:
...,
plotOptions: {
pie: {
colors: [
'#50B432',
'#ED561B',
'#DDDF00',
'#24CBE5',
'#64E572',
'#FF9655',
'#FFF263',
'#6AF9C4'
],
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: false
},
showInLegend: true
}
},
...