kgupta
Posts: 3
Joined: Thu Nov 08, 2018 7:11 pm

Gantt chart display project and calendar weeks

Hi,

We have a requirement to display Calendar week of the year and Project Start week as two separate lines.

Eg: If project start date is 30th Aug 2021. Then calendar week will show week 36 where as Project start week will be 1.

Any ideas on how to achieve this? Tried using tickinterval but had no luck.

Thanks in advance.

Regards,
Gupta
kgupta
Posts: 3
Joined: Thu Nov 08, 2018 7:11 pm

Re: Gantt chart display project and calendar weeks

Capture.JPG
Capture.JPG (26.23 KiB) Viewed 1616 times
MicrosoftTeams-image (5).png
MicrosoftTeams-image (5).png (23.16 KiB) Viewed 1616 times
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Gantt chart display project and calendar weeks

Hi,
Thanks for contacting us!

I recommend using xAxis.labels.formatter to edit labels on the first axis, it's a callback JavaScript function that gives you the possibility to change labels.

Live demo:
https://jsfiddle.net/BlackLabel/19r0u4kq/

API References:
https://api.highcharts.com/gantt/xAxis.labels.formatter

Let me know if it helps you.
Best regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Gantt”