Accepted answer

from docs:

html in highcharts

texts and labels in highcharts are given in html, but as the html is parsed and rendered in svg, only a subset is supported. the following tags are supported: <b>, <strong>, <i>, <em>, <br/>, <span>. spans can be styled with a style attribute, but only text-related css that is shared with svg is handled.

most places where text is handled in highcharts, it is also followed by an option called usehtml. when this is true, the text is laid out as html on top of the chart. this allows for full html support and can be a good idea if you want to add images in your labels, tables in your tooltip etc.

so, you can use html tags in categories array, for example:

  xaxis: {
    categories: [
      '<span style="font-size: 16px; color: red;">-22.5%</span><br>client<br>calls',

live demo:


api reference:

Related Query