I am looking to create a custom pie chart with two different colors: one for the main surface and another for the sides. Currently, I can only configure the lighter blue color for the main surface, but I would like to also change the darker blue color for the sides of the 3D pie chart.
Is there a way to individually specify colors for both the main surface and the sides of the pie chart using Highcharts?
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'pie',
options3d: {
enabled: true,
alpha: 60
}
},
plotOptions: {
pie: {
depth: 150,
animation: false,
states: {
hover: false
}
}
},
series: [{
data: [
['apple', 8]
]
}],
tooltip: {
enabled: false
}
});
<!DOCTYPE html>
<html>
<head>
<title>My Custom Pie Chart</title>
</head>
<body>
<div id="container" style="height: 400px"></div>
<script src="http://code.highcharts.com/adapters/standalone-framework.js"></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/highcharts-3d.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<script type="text/javascript" src="script.js"></script>
</body>
</html>