Settings and activity

1 result found

  1. 29 votes
    How important is this to you?
    An error occurred while saving the comment
    Erlend commented  · 

    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
    },