Arczi159
Posts: 4
Joined: Mon Aug 23, 2021 12:49 pm

Highchrats dataLabel left/right side of bar

Hi my problem is.

https://jsfiddle.net/L856rtjp/30/

Image

If we see 3-th bar is smaller then text.

Now I want to have (outside):

TEXT--<BAR>

I tried it in chart render() but I don't have options to see bar width in pixels. I see x and x2 in date time.

Could you help me with it ?
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Highchrats dataLabel left/right side of bar

Hi,

Thanks for contacting us with your question!

Here is the demo showing how to render this label:
https://jsfiddle.net/BlackLabel/dk6L8usp/

Feel free to ask any further questions,
Regards!
Magdalena Gut
Developer and Highcharts Support Engineer
Arczi159
Posts: 4
Joined: Mon Aug 23, 2021 12:49 pm

Re: Highchrats dataLabel left/right side of bar

Thank you sooooo much !!! It works
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Highchrats dataLabel left/right side of bar

You're welcome! In case of any further questions, feel free to contact us again.
Magdalena Gut
Developer and Highcharts Support Engineer

Return to “Highcharts Gantt”