Highcharts ampersand

How can I display the ampersand correctly in the first set of columns / columns in this chart:

http://jsfiddle.net/VxbrK/2/

It should be "Apples and Oranges" and not "Apples" &

Oranges.

+3


source to share


3 answers


You can set useHTML to true for labels.



xAxis: {
                labels:{
                    useHTML:true
                }
            },

      

+6


source


The html objects screen is seriously bugged: http://forum.highcharts.com/viewtopic.php?f=9&t=7299&p=35653



In my experience, I've found that the best solution is to use unicode escape sequences instead of entities.

+1


source


If you decide to go with a unicode escape, keep in mind that entities of the type é

will not directly translate to /u0233

, but to /u00E9

(hex value). a list of conversions can be found here: http://en.wikipedia.org/wiki/List_of_Unicode_characters .

0


source







All Articles