JavaScript
$(function() {
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
marginRight: 80 // like left
},
xAxis: [{
type: 'datetime'}],
yAxis: [{
height: 100,
lineWidth: 1,
title: {
text: 'Primary Axis'
}
},{
height: 100,
top: 170,
lineWidth: 1,
offset: 0,
title: {
text: 'Secondary Axis'
}
},{
height: 100,
top: 298,
lineWidth: 1,
offset: 0,
title: {
text: 'Last Axis'
}
}],
tooltip: {
shared: true,
positioner: function(w, h, point) {
return {
x: point.plotX - 10,
y: point.plotY - 10
};
}
},
series: [{
data: [null, 71.5, 106.4, null, 144.0, null, 135.6, null, 216.4, 194.1, null, 54.4],
type: 'scatter',
marker: {
enabled: false
},
dataLabels: {
enabled: true
},
pointStart: Date.UTC(2012, 0, 0),
pointInterval: 24 * 3600 * 1000},
{
data: [144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4, 29.9, 71.5, 106.4, 129.2],
type: 'line',
yAxis: 1,
dataLabels: {
enabled: true
},
pointStart: Date.UTC(2012, 0, 0),
pointInterval: 24 * 3600 * 1000},
{
data: [144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4, 29.9, 71.5, 106.4, 129.2],
type: 'line',
yAxis: 2,
pointStart: Date.UTC(2012, 0, 0),
pointInterval: 24 * 3600 * 1000}]
});
});