How to increment Bottom-Axis for Datetime series ?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
fano
Newbie
Newbie
Posts: 56
Joined: Wed Jun 22, 2005 4:00 am
Location: USA, California

How to increment Bottom-Axis for Datetime series ?

Post by fano » Tue Mar 28, 2006 9:26 pm

Hi,

How do I increase the Maximum of a DateTime bottom axis
for an arbitrary number of minutes?

Currently I am using this line of code to increase the X-axis maximum for
a DateTime series.

tChart.Axes.Bottom.Maximum +=
Steema.TeeChart.Utils.GetDateTimeStep(Steema.TeeChart.DateTimeSteps.TenMinutes);

However, the enums from: Steema.TeeChart.DateTimeSteps
don't allow me to set more arbitrary values, like 78 Minutes.

How can I do that?

Thanks,
fano

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 Mar 29, 2006 9:52 am

Hi fano,

Steema.TeeChart.DateTimeSteps.OneMinute certainly exists. However, you can easily calculate this interval by doing something like this:

Code: Select all

      double Minute=(1.0F / (24.0F * 60.0F));

      tChart1.Axes.Bottom.Automatic = false;
      //tChart1.Axes.Bottom.Maximum += Steema.TeeChart.Utils.GetDateTimeStep(Steema.TeeChart.DateTimeSteps.OneMinute) * 78.0F;
      tChart1.Axes.Bottom.Maximum += Minute * 78.0F;
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