StepPointer
Posts: 1
Joined: Thu Mar 09, 2023 12:53 pm

Zoom for one day. Is it posible?

Hi, I`m working on my project with gantt.

The task for now is to be able to work with task management hourly. So I need to see scale in hours that day that I will zoom into. And manage tasks in the day hourly schedule. Some thing like outlook is using.

Is gantt provide this posibility?
jedrzej.r
Posts: 725
Joined: Tue Jan 24, 2023 11:21 am

Re: Zoom for one day. Is it posible?

Hello,

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

In order to achieve what you described, you should enable zoooming by setting chart.zooming.type to "x" in chart config. By default, minimum zooming interval is calculated by data provided. To display hours in xAxis, you should set minTickInterval and minRange appropriately.

Take a look at this demo: https://jsfiddle.net/BlackLabel/kwc71ue6/

References:
https://api.highcharts.com/gantt/chart.zooming.type
https://api.highcharts.com/gantt/xAxis.minRange
https://api.highcharts.com/gantt/xAxis.minTickInterval

Let me know if this was what you were looking for!
Best regards!
Jędrzej Ruta
Highcharts Developer

Return to “Highcharts Gantt”