Page 1 of 1

How to increment Bottom-Axis for Datetime series ?

Posted: Tue Mar 28, 2006 9:26 pm
by 9637279
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

Posted: Wed Mar 29, 2006 9:52 am
by narcis
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;