Control Gantt Chart Size Progmatically

TeeChart for ActiveX, COM and ASP
Post Reply
KTB
Newbie
Newbie
Posts: 20
Joined: Fri Oct 22, 2004 4:00 am

Control Gantt Chart Size Progmatically

Post by KTB » Thu Feb 10, 2005 3:28 pm

I'm using TeeChart 7.0.0.2 with VFP 9. I have a Gantt chart that contains
multiple series. How can I progmatically control the initial size of the
chart allowing the user to scroll up/down/left/right?

For instance, let's say my data sources generate 40 rows of data, for 16
hours (5:00AM to 9:00PM). After I load the series data, how can I tell the
chart to size itself to display the first 10 rows, from 12pm to 6pm?

Also, how do I eliminate the dead space between days? For instance I may show a Gannt chart for 7 days, but there is no data from 12AM-6AM for any of the days. How can I get rid of the blank areas in the chart from 12AM-6AM?
TIA

Ken

KTB
Newbie
Newbie
Posts: 20
Joined: Fri Oct 22, 2004 4:00 am

Post by KTB » Thu Feb 10, 2005 7:37 pm

OK, I figured out the range...

Code: Select all

WITH THISFORM.TeeGraph.Axis
  .Left.Automatic = .F.
  .Left.Maximum = MIN(RECCOUNT("Graph_Vert"),12)
  .Bottom.Automatic = .F.
  .Bottom.Maximum = tEndDate + 3600
  .Bottom.Minimum = tStartDate
ENDWITH
However, I still have not figured out how to get rid of the "overnight dead space". Still looking for some help on that.[/code]

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

Post by Narcís » Fri Feb 11, 2005 8:44 am

Hi KTB,

Having a look at the "Axis Labels No Weekends" example in the TeeChart features demo will help you solving this. You can find this demo in the program manager TeeChart entry.
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