New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setTitle on hidden chart -> titles overlap (when useHTML) #2267
Comments
It only happens when the chart is hidden (by giving the container display: none) at the time you are running setTitle. This is because Highcharts is unable to compute the measured height of the text, as the offsetHeight of a non-displayed element and its children is 0. Two workarounds are possible:
|
Thanks for the workarounds. It indeed works that way. |
I figured that |
This is still relevant. One way to solve it could be to check for |
Updated workaround: Use the thorougher |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions! |
http://jsfiddle.net/W4EEg/13/
only applies when
useHTML
is onThe text was updated successfully, but these errors were encountered: