Is it possible to change the axis title of a HighCharts chart programatically?
I'm trying to do something like this:
charts.series[0].yAxis.title.text = 'new title';
or
charts.yAxis[0].title.text = 'new title';
(having already set a title when the chart was initialized).
Yes you can do this by using the following:
chart.yAxis[0].axisTitle.attr({
text: 'new title'
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With