Answer to Stack Overflow question: http://stackoverflow.com/questions/38884794/highcharts-grouped-bar-charts-with-multiple-axeshttp://stackoverflow.com/questions/20817166/multiple-y-axes-for-column-graph-categories-in-highcharts
Mike Zavarello
by Mike Zavarello
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
$('#container').highcharts({
chart: {
type: 'column'
},
title: {
text: 'Weather data'
},
xAxis: {
categories: ['Spring','Summer','Fall','Winter']
},
yAxis: [{
allowDecimals: false,
min: 0,
title: {
text: 'Percent'
}
},{
allowDecimals: false,
min: 0, max: 1000,
title: {
text: 'Pressure'
},
opposite: true
}],
series: [{
name: 'Humidity',
data: [10, 50, 30, 5]
}, {
name: 'Barometric pressure',
data: [550, 740, 655, 800],
yAxis: 1
}]
});
});