I'm looking to create a unique Google line chart that showcases temperature, humidity, and air pressure all within one single chart.
The challenge is incorporating three different y-axes with distinct ranges without them overlapping.
Most examples I've come across only feature two y-axes. Can triple y-axes be achieved? Would using the material variant instead of the classic version be beneficial?
Below is my current chart setup:
new google.visualization.LineChart(document.getElementById('visualization'))
.draw(data, {
vAxes : [ {
title : 'Title 1',
minValue : 0,
maxValue : 20
}, {
title : 'Title 2',
minValue : 40,
maxValue : 80
}, {
title : 'Title 3',
minValue : 950,
maxValue : 1050
} ],
series : {
0 : {
targetAxisIndex : 0
},
1 : {
targetAxisIndex : 1
},
2 : {
targetAxisIndex : 2
}
},
});
You can view the live example here on this JSFiddle link.