JavaScript
var chart;
$(document).ready(function() {
chart = new Highcharts.Chart({
colors: [
'blue' , // Atlantic
'red' , // Sand
'silver' , // Chocolate
'orange' , // Lavender
'green' , // Olive
'grey' , // Mouse
'gold' , // Chestnut
'rgba(80, 183, 123, 1)' , // Fern
'rgba(128, 0, 102, 1)' , // Clay
'rgba(150, 124, 100, 1)' , // Caramel
'rgba(193, 10, 0, 1)' , // Terracotta
'rgba(91, 214, 235, 1)' , // Glacier
'rgba(90, 111, 137, 1)' , // Plum
'rgba(212, 173, 156, 1)' , // Cinnamon
'rgba(145, 145, 145, 1)' , // Smoke
'rgba(146, 184, 214, 1)' // Lake
],
chart: {
renderTo: 'container',
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
title: {
text: 'Lorem ipsum 2013'
},
legend: {
align: 'right',
verticalAlign: 'top',
x: -60,
y: 72,
layout: 'vertical'
},
tooltip: {
formatter: function() {
return '<b>'+ this.point.name +'</b>: '+ this.percentage +' %';
}
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: false
},
showInLegend: true,
slicedOffset: 20
}
},
series: [{
type: 'pie',
name: 'Expenses',
data: [
['Legend item', 20.0],
['Legend item', 20.0],
['Legend item', 20.0],
['Legend item', 20.0],
['Legend item', 20.0],
['Legend item', 20.0],
['Legend item', 20.0],
['Legend item', 20.0],
['Legend item', 20.0],
{
...