← Settings and activity 1 result found add support for subscripts and superscripts to the Renderer buildText function. 29 votes Vote Vote Vote Vote We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close 1 vote 2 votes 3 votes Remove votes You have left! (?) (thinking…) 4 comments · Highcharts Javascript API · Delete… · Admin → How important is this to you? Not at all You must login first! Important You must login first! Critical You must login first! We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close An error occurred while saving the comment Erlend commented · Jun 15, 2012 · Edit… · Delete… You can use the html <sup> and <sub> thusly: xAxis: { categories: ['y<sub>1</sub>', '', 'x<sup>2</sup>'], labels: { useHTML: true } } and in tooltips: tooltip: { formatter: function() { return ''+ this.series.name +': '+ this.y +' <sup>millions</sup>'; }, useHTML: true }, Save Submitting...
You can use the html <sup> and <sub> thusly:
xAxis: {
categories: ['y<sub>1</sub>', '', 'x<sup>2</sup>'],
labels: {
useHTML: true
}
}
and in tooltips:
tooltip: {
formatter: function() {
return ''+ this.series.name +': '+ this.y +' <sup>millions</sup>';
},
useHTML: true
},