I have been using Highcharts for several year now and decided to update recently to the latest version (9.2.2). I am using custom tooltips and labels formatters with svg elements for icons using the <use> element (https://developer.mozilla.org/en-US/doc ... e/href#use).
After upgrading to version 9 my icons don't show up anymore even though the elements are correctly inserted in the DOM.
I have already added the required attributes and tags to their corresponding list with the following code so that they are not escaped by Highcharts:
Code: Select all
Highcharts.AST.allowedTags.push("use");
Highcharts.AST.allowedAttributes.push("xlink:href");
Code: Select all
tooltip.innerHtml = tooltip.innerHtml; // tooltip being the HTML Node corresponding to the tooltip