DateTime axis increment

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
hkv
Newbie
Newbie
Posts: 1
Joined: Tue Feb 28, 2006 12:00 am

DateTime axis increment

Post by hkv » Mon May 08, 2006 9:14 am

In the example there is a line that says:

this.tChart1.Axes.Bottom.Increment = Convert.ToDouble(TeeChart.DateTimeSteps.OneDay)

I think that that is a error because the resulting increment gets the value of 15

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

Post by Narcís » Mon May 08, 2006 10:35 am

Hi hkv,

This is because this may be its position in the enum list. To use this properly you should use:

Code: Select all

      tChart1.Axes.Bottom.Increment = Steema.TeeChart.Utils.GetDateTimeStep(Steema.TeeChart.DateTimeSteps.OneDay);
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