Settings and activity
1 result found
-
21 votes
The key is setting useHTML to true: http://jsfiddle.net/highcharts/8FSp6/.
Here’s another approach, allowing true SVG images: http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/studies/axis-label-images/. The advantage of using SVG is that these images willl be visible in the exported chart as well.
An error occurred while saving the comment An error occurred while saving the comment jhaile commentedTorstein: I've found that setting useHTML to true breaks the wrapping of labels when they are aligned left. Since I'm aligning left, I had to set a margin and width for my labels. But setting useHTML ignores the width specified in my style:
Here's an example: http://jsfiddle.net/LJbPT/2/
And here's a forum post about my alignment problem in general: http://highslide.com/forum/viewtopic.php?f=9&t=14007&p=61248#p61248
An error occurred while saving the comment jhaile commentedOK - upgrading to 2.1.9 did the trick. Thanks!
An error occurred while saving the comment jhaile commentedIt's also not working for me. Is this because you are including testing.js? What is that?
An error occurred while saving the comment jhaile commentedThanks Torstein - don't see that documented here:
http://www.highcharts.com/ref/#xAxis-labelsjhaile shared this idea ·
Yep - that fixed it. Thanks!