I am trying to achieve the same thing as seen here:
http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/treemap-coloraxis
Except with a pie chart instead.
I have it set up like so:
$('#expenditurePie').highcharts({
chart: {
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false,
backgroundColor: '#121212',
height: 322,
className: 'summary-chart-right'
},
title: null,
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
},
plotOptions: {
pie: {
allowPointSelect: true,
borderColor: '#000',
cursor: 'pointer',
dataLabels: false
}
},
colorAxis: {
minColor: '#FFFFFF',
maxColor: '#FF0000'
},
series: response
});
A sample of response data:
...
{name: "Leisure", y: 143.55, colorValue: 3}
...
It isn't working and the pie chart colours are their default.
How can I do this?