DateTime Bottom Axis problem
Posted: Tue Mar 21, 2006 9:36 pm
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
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