I have found that I can change series with setData, and I know I can modify Max values with .setExtremes , but I cannot figure out how to set the tooltip formatter from the chart object.
How do I update that field ?
If i have a chart object , how do I update its tooltip formatter property ? and How about the plotOptions tooltip formatter?
What I have tried :
chart1.tooltip.formatter = function() {return ''+this.series.name +'example: '+ this.y +'example';};
But nothing changed in my tooltips when i added that after the chart definition (for testing).
Also, I noted that this
console.log (chart1.tooltip.formatter);
returns undefined, but I don’t know why.
Fiddle so you can try it out.
http://jsfiddle.net/pCuUW/5/
Thanks in advance.
You can use
chart.tooltip.options.formatterinstead, likeChanging tooltip formatter dynamically | Highchart & Highstock @ jsFiddle
UPDATE
In new (5.0.0+) versions of highcharts, this can also be done using the
chart.update()methodChanging tooltip formatter dynamically with chart.update | Highchart & Highstock @ jsFiddle