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
How to increment Bottom-Axis for Datetime series ?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi fano,
Steema.TeeChart.DateTimeSteps.OneMinute certainly exists. However, you can easily calculate this interval by doing something like this:
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 |
Instructions - How to post in this forum |