Bottom axis label

TeeChart for ActiveX, COM and ASP
Post Reply
MML
Newbie
Newbie
Posts: 4
Joined: Tue Jun 13, 2006 12:00 am

Bottom axis label

Post by MML » Tue Mar 13, 2007 7:01 am

I have time and date on bottom axis of TeeChart. Date/Time format in MS Access database had format (example): "7.3.2007 14:06:58". How can i set fixed minimum and maximum value on bottom axis?

With TChart1.Axis.Bottom
.Labels.MultiLine = True
.Labels.DateTimeFormat = "dd.mm.yy hh:mm "
.Automatic = False
.Minimum =??????
.Maximum =??????
End With


Regards[/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 » Tue Mar 13, 2007 8:53 am

Hi MML,

You can do something like this:

Code: Select all

    TChart1.Axis.Bottom.SetMinMax CDate("1/3/2007"), CDate("31/3/2007")
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