How to programmatically switch DateTime property of Axis

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
xray
Newbie
Newbie
Posts: 15
Joined: Thu Dec 20, 2007 12:00 am

How to programmatically switch DateTime property of Axis

Post by xray » Tue Mar 17, 2009 10:35 am

Hi TChart Team,

I can switch on/off the DateTime property for the Vertical Axis of a TColorGridSeries by selecting this series in the editor window and then activating the "General" tab. There you find this switch in the "Vertical Axis" group box.

How can I do that programmatically for a TColorGridSeries?

best regards

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Tue Mar 17, 2009 11:05 am

Hi xray,

Have you tried this?

Code: Select all

Chart1.Axes.Left.IsDateTime := true;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

xray
Newbie
Newbie
Posts: 15
Joined: Thu Dec 20, 2007 12:00 am

Post by xray » Tue Mar 17, 2009 12:05 pm

Hi Yeray,

this can't work because:

Chart1.Axes.Left.IsDateTime

is a function not a writable property.

Any other hints?

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Tue Mar 17, 2009 12:12 pm

Hi xray,

Of course, I'm sorry. I wanted to go too fast. This is the good one:

Code: Select all

Series1.YValues.DateTime := true;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply