I have a simple column chart that I update via AJAX, and all is working fine except I cannot change the actual title of the chart when I'm updating the data.
I've tried the obvious -
chart.title="new title";
//and
chart.title.text="New title";
etc. - to no avail, and have had no success finding a solution online.
Any help will be greatly appreciated.
yAxis[0]. update({ title:{ text:"My text" } }); alert('Y-axis title changed to "My text" ! '); }); Refer Highcharts 'update' function documentation for further details.
To determine that chart is fully loaded you can use load event, because load event is invoked when all elements are drown (API reference https://api.highcharts.com/highcharts/chart.events.load). However when you are using series animation this runs in a timeout, then load event is invoked before animation will finish.
Just don't create the highchart and insert text saying "No Data Available". Without any code, this is the most help you're likely to get.
You can use setTitle(titleObj, subTitleObj)
for that.
chart.setTitle({text: "New Title"});
See an example: jsfiddle
See the API Ref.
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