Tooltip text alignment in Highcharts for 'direction: rtl'
Asked Answered
L

1

6

When I set direction: rtl; to the body I get this bug in Highcharts:

enter image description here

When direction is ltr then it is ok:

enter image description here

I made all the changes related to this fiddle http://jsfiddle.net/highcharts/buYCZ/ from documentation, and the only problem is that text is not aligned properly in tooltip.

Also I tried to resolve it with css hacks, but it isn't working at all. Or I am supposed to write a custom formatter function for that?

//UPDATED: Fiddle with the error: http://jsfiddle.net/7cHth/1/

Longe answered 8/5, 2014 at 8:5 Comment(2)
jsfiddle.net/buYCZ/98 seems to working fine, so please updaete my code with yours to replicate this issue.Marenmarena
Forked the fiddle: jsfiddle.net/7cHth/1Longe
M
13

You need to set useHTML as true for the toolitp, in your chart

http://jsfiddle.net/7cHth/2/

Marenmarena answered 8/5, 2014 at 11:38 Comment(1)
Thanks for your answer. I have used it but when compile highchart in website you should include HTML.Description

© 2022 - 2024 — McMap. All rights reserved.