Skip to content
Advertisement

Highcarts, removes html on categories

So I have this issue where i pass in categories with html, but if I send in

JavaScript

the only thing that comes out is

JavaScript

Does anyone know why this happens? Here is the code for the highchart. This has worked before and I haven’t changed anything that I can remember. These are all the details I have to post. How many more details do you need?

JavaScript

Advertisement

Answer

That behaviour was introduced in Highcharts 9 and it is intended. You can separate the click handlers from the config.

JavaScript

Live demo: https://codepen.io/TorsteinHonsi/pen/RwoWPqd

Please check this github issue: https://github.com/highcharts/highcharts/issues/15031 for more information.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement