MinosGFX
Posts: 8
Joined: Fri May 28, 2021 7:58 am

Highcharts Gantt - Set max height and scrollbar on yAxis

I'm doing a project using Highcharts Gantt, and I'm having a little trouble mastering it at the moment, especially the management of its height and Y axis.

Here Sandbox : https://codesandbox.io/s/nice-microserv ... sx:334-352

Let me explain: What I want to do is set a maximum height and use scrollablePlotArea to make the y-axis scroll, while keeping the X-axis header.

The problem is: if I define a minHeight in scrollablePlotArea, the Y axis cuts the events until the minimum height defined (see sandbox), if I increase minHeight, it will cut less events, but the number is dynamic, so impossible to put a fixed value...

My question is: How to define a maximum height, while keeping a Y scroll that displays all events, While not changing the line height? I tried several possibilities with the documentation, but nothing works...

I hope I made myself understood... Thank you very much for your help.
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Highcharts Gantt - Set max height and scrollbar on yAxis

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

Let's clarifying, you want to show the header (for example Cellule A) after click on task parents at the yAxis?

Generally, there is no such solution in the API, but you can try some options, here are links about it:
viewtopic.php?t=42020#p147217
https://stackoverflow.com/questions/600 ... vertically

Let me know how are you doing with this.
Best regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Gantt”