Dhananjayan
Posts: 5
Joined: Tue Mar 23, 2021 9:43 am

y Axis Label Hiding on scroll

y Axis label hiding randomly on scrolling highcharts gantt chart.

Below you could find sample code. we refered many example in jsfiddle all facing the same issue.

https://jsfiddle.net/BlackLabel/quvmhrdk/

Below link has a screenshot.

https://drive.google.com/file/d/1qyIo1Z ... sp=sharing
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: y Axis Label Hiding on scroll

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

Scrolling in Gantt doesn't work well, this bug is actually known, you can track it here:
https://github.com/highcharts/highcharts/issues/9378

Feel free to ask any questions.
Best regards.
Sebastian Hajdus
Highcharts Developer
Dhananjayan
Posts: 5
Joined: Tue Mar 23, 2021 9:43 am

Re: y Axis Label Hiding on scroll

Thanks for your response. It seems by trying with scrollablePlotArea working fine. I would like to know how can we implement minheight calculation in scrollablePlotArea with respect to dynamic data.

Working example

https://jsfiddle.net/BlackLabel/asyzfLv1/1/

Below example has modified minHeight makes chart area blank

https://jsfiddle.net/Dhananjayan/0g74ptz9/1/
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: y Axis Label Hiding on scroll

Hi,
Thanks for the message.

This is because the chart is outside the scroll range, you can decrease the minHeight value to see how it works.
The minimum height for the plot area. If it gets smaller than this, the plot area will become scrollable.
https://api.highcharts.com/gantt/chart. ... .minHeight

Demo:
https://jsfiddle.net/BlackLabel/w2fn8kL0/

Best regards.
Sebastian Hajdus
Highcharts Developer
Dhananjayan
Posts: 5
Joined: Tue Mar 23, 2021 9:43 am

Re: y Axis Label Hiding on scroll

In my case, we get 3 rows to 600 records. If we give static minHeight, it is not working. so, If the get the formula to calculate minHeight value based on the number of records. It will be useful.
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: y Axis Label Hiding on scroll

Hi,

Unfortunately, I don't have such a ready-made solution, it could probably possible but you have to write your own code.

Best regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Gantt”