I am trying to prevent the yAxis labels from overflowing and overlapping on top of the chart. As shown in this example, they currently do:
Highcharts.chart('container', {
chart: {
marginBottom: 80
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
yAxis: {
title: {
text: ''
},
opposite: true,
labels: {
align: 'right'
}
},
series: [{
data: [209.9, 71.5, 106.4, 1209.2, 1404.0, 1706.0, 135.6, 1408.5, 216.4, 194.1, 95.6, 54.4]
}]
});
I have experimented with different positioning options but I am struggling to find a solution without manually setting offsets and padding, which is not ideal for dynamic data. How can I achieve a similar result as this highstocks example where the yAxis is outside the chart without any overflow?
Desired outcome: