add html support to data labels
I would like to see a full or an extra html support in data labels. This would allow to add images, divs and anything that is not pure text.
Full HTML support isn’t planned because it wouldn’t be visible in the exported chart. A subset of HTML is already supported by the data labels. You can add spans, anchors and styled spans within the text.
-
Johnny commented
Supporting non-breaking space ( ) would be useful
-
Marçal Juan Llaó commented
I cannot add any markup on dataLabels :(
http://jsfiddle.net/marcalj/JmPWS/ -
jhaile commented
Torstein, can you provide an example of how to add images through images to axis labels using the renderer?
-
Images have to be added programmatically through the renderer. See http://highcharts.com/ref/#renderer => image.
-
abdul commented
Thank you for the info. But I tried to add images to xAxis and yAxis labels and could not do it, neither through img tag or styling span tag.