Page 1 of 1

DateTime Bottom Axis problem

Posted: Tue Mar 21, 2006 9:36 pm
by 9637279
Hi,
When I use plain double values for the Bottom X axs I have no problem
changing the Maximum during run time while real time data is coming in:
e.g.
this.TChart1.Axes.Bottom.Maximum += 30.0;
And for this case I do NOT have to set
this.TChart1.Axis.Bottom.Automatic = false.

But when it is the series associated with it are DateTime then I have a problem doing this. If at given conditions I want to increase the maximum I use:
this.TChart1.Axes.Bottom.Maximum += Steema.TeeChart.Utils.GetDateTimeStep(Steema.TeeChart.DateTimeSteps.OneMinute);

For this to take effect I have to set the 'Automatic' property to 'false' first.
The result, however, is that the series are no longer visible. The Bottom axis maximum increases but non of the series can be seen anymore.

What is the proper way to increase the Maximum of the Bottom X axis during runtime when the series have DateTime values as x (bottom) values?

Thanks,
fano

Posted: Tue Mar 21, 2006 9:54 pm
by 9637279
Ups.... I got it to work using the
Steema.TeeChart.Utils.DateTime(...
function to supply the proper value...

The series show now up. The time values I for Max and the
series time values were totally appart before.

Sorry for the unnecessary entry.
fano