Page 1 of 1

Gantt zoom/centered programatically on certain date

Posted: Wed Feb 08, 2006 12:44 pm
by 9527066
Is there a way to zoom a Gantt programatically so that the gantt is always centered on the current date for example. I have an entire years worth of data in the chart but I need the gantt to zoom in by default on the current month only, but still allowing the user the ability to scroll left and right as they want to.

Is this type of thing possible?

Posted: Wed Feb 08, 2006 2:18 pm
by narcis
Hi CarlS,

Yes, you can do that using TChart1.Axis.Bottom.SetMinMax method setting the bottom axis minimum and maximum to the time frame you wish to display.

Gantt zoom/centered programatically on certain date

Posted: Thu Feb 09, 2006 7:09 am
by 9527066
Thanks for the help. It works Perfectly.

Posted: Thu Feb 09, 2006 9:46 am
by narcis
You're welcome CarlS. I'm glad to hear that was useful.