The Gantt chart option labelsPosition set to edge

Share RGraph:   Share or Like RGraph on Facebook!

« 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?

Thanks,
Keith
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:

www.rgraph.net/fiddle/view.html/gantt-chart-label-positioning

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



Richard
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