Gantt zoom/centered programatically on certain date

TeeChart for ActiveX, COM and ASP
Post Reply
CarlS
Newbie
Newbie
Posts: 6
Joined: Thu Jun 02, 2005 4:00 am
Location: South Africa

Gantt zoom/centered programatically on certain date

Post by CarlS » Wed Feb 08, 2006 12:44 pm

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Feb 08, 2006 2:18 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

CarlS
Newbie
Newbie
Posts: 6
Joined: Thu Jun 02, 2005 4:00 am
Location: South Africa

Gantt zoom/centered programatically on certain date

Post by CarlS » Thu Feb 09, 2006 7:09 am

Thanks for the help. It works Perfectly.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Feb 09, 2006 9:46 am

You're welcome CarlS. I'm glad to hear that was useful.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply