JavaScript
$(document).ready(function () {
var data = [
{ data: [[1, 3], [2, 8], [3, 5], [7, 13]], bars: { show: true }, xaxis: 1,
yaxis: 1, color: "rgb(255, 0, 0)" },
{ data: [[3, 3], [6, 8], [8, 5], [12, 13]], xaxis: 1, yaxis: 2, color: "rgb(0, 255, 0)" },
{ data: [[5, 12], [7, 12], null, [7, 2.5], [12, 2.5]], xaxis: 1, yaxis: 3, color: "rgb(0, 0, 255)" },
{ data: [[2, 3], [7, 8], [9, 5], [10, 13], [11,12]], xaxis: 1, yaxis: 4, color: "rgb(0, 255, 255)" }
];
$.plot($("#placeholder"),
data,
{
xaxes: [
{ position: 'bottom', axisLabel: 'Date' }
],
yaxes: [
{ position: 'left', axisLabel: 'Hourly Rain (mm)',
axisLabelPadding: 10 },
{ position: 'right', axisLabel: 'Temperature (C)',
axisLabelPadding: 10},
{ position: 'right', axisLabel: 'Relative Humidity (%)',
axisLabelPadding: 10},
{ position: 'right',axisLabel: 'Pressure (hPa)',
axisLabelPadding: 10}
],
grid: { hoverable: true, show: true }
}
);
$('.yaxisLabel').css('color','red');
$('.y2axisLabel').css('color','orange');
$('.y3axisLabel').css('color','green');
$('.y4axisLabel').css('color','purple');
});