Reputation: 17228
I want to change chart title dynamically. Using browsers different than IE it's simply as:
$('.highcharts-title>tspan','#container').text('some text');
How to do this in IE?
Upvotes: 0
Views: 620
Reputation: 17228
Works in all browsers:
$('.highcharts-title','#container').text('some text');
Upvotes: 1
Reputation: 1943
If you've the chart object then you can use the method setTitle, for details see http://www.highcharts.com/ref/#chart-object.
Otherwise you'll need a different selector for IE as you don't need the child tspan as the title is just a span. (This was with IE8, other version may render it differently).
Upvotes: 1