vijayy
Posts: 4
Joined: Wed Feb 01, 2023 10:21 am

Highcharts do not wrap continuous long labels on y axis

Hi,

I've long labels without any spaces. Highcharts is not wrapping them by default.

jsfiddle: http://jsfiddle.net/u42xyqzb/

Screenshot
jakub.s
Posts: 1167
Joined: Fri Dec 16, 2022 11:45 am

Re: Highcharts do not wrap continuous long labels on y axis

Hi,

Thanks for the question!

You're right. Highcharts renders these labels as SVGs and for <text> wrapping works a little different than in HTML.
Highcharts does not wrap a long word like that, but allows you to break it/wrap it in a certain place by just adding <br>.

Here's a demo: http://jsfiddle.net/BlackLabel/ekvwpd4n/

Let me know if that helps.

Best regards,
Jakub
Jakub
Highcharts Developer

Return to “Highcharts Usage”