I'm using Highcharts 5.0.7
I have a pie, that has dataLabels that for some reason are all blue (#003399).
And it doesn't look good on all pie slices.
This is my code:
Code: Select all
plotOptions: {
pie: {
allowPointSelect: true,
showInLegend: true,
cursor: 'pointer',
depth: 35,
dataLabels: {
distance: -25,
enabled: true,
style: {
'fontSize': '12px',
'fontFamily': 'Arial',
'textOutline': 'none',
'color': 'contrast'
},
useHTML: false,
formatter: function () {
return this.y;
}
}
},
Also, I am setting each series datapoint's color using 'className' in the series data array.
But the legend doesn't use these classes. And i don't know why...