JavaScript
$(function () {
$('#container').highcharts({
chart: {},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
plotOptions: {
area: {
marker: {
enabled: false
}
},
series: {
cursor: 'pointer',
point: {
events: {
click: function () {
alert('Category: ' + this.category + ', value: ' + this.y);
}
}
}
}
},
series: [{
type: 'area',
color: '#000000',
index:0,
data: [39.9, 75.5, 120.4, 150.2, 130.0, 120.0, 140.6, 158.5, 216.4, 194.1, 220.6, 230.4]
}, {
index:1,
color: '#000000',
data: [39.9, 75.5, 120.4, 150.2, 130.0, 120.0, 140.6, 158.5, 216.4, 194.1, 220.6, 230.4]
}, {
color: '#ff0000',
index:2,
data: [250.9, 240.5, 230.4, 220.2, 200.0, 180.0, 160.6, 140.5, 110.4, 100.1, 75.6, 20.4]
}, {
color: '#ff0000',
type: 'area',
index:0,
data: [250.9, 240.5, 230.4, 220.2, 200.0, 180.0, 160.6, 140.5, 110.4, 100.1, 75.6, 20.4]
}
]
});
});