rpervaiz@thingtrax
Posts: 1
Joined: Mon Jul 12, 2021 6:37 am

Label should be hide outside bar

Hi,

When labels is greater than the bar. Then label is overflowing and showing outside the bar.
I want to hide the label if it goes outside the bar. It should show inside the bar and remaining should be hidden.

Thanks
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: Label should be hide outside bar

Hello rpervaiz@thingtrax!

Welcome to our forum and thanks for contacting us with your question!

There was a very similar topic, here you have a link: viewtopic.php?t=44850

In short in the formater function, you can add a condition in which we check if the point box is wide enough to fit the text.

Best regards!
Dominik Chudy
Highcharts Developer

Return to “Highcharts Gantt”