The Gantt chart option labelsPosition set to edge

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Keith on 3rd October 2016
I'm trying to produce a GANTT chart with the X axis labels at the start of each period rather than the middle. However, adding

labelsPosition: 'edge'

doesn't change the position of the labels.

Have I misunderstood what that option does?

Posted by Richard on 4th October 2016
Hi there,

Well thats not a Gantt chart option. But you can achieve what you want by drawing the labels manually like this:

The code to draw the labels is in the ondraw function.

Posted by Keith on 4th October 2016
Thanks - didn't realise that wasn't an option on GANTT charts, but appreciate the other approach.

Add a reply

« Back to message list