Axis scroll tool issue when nothing has been drawn yet....

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

Axis scroll tool issue when nothing has been drawn yet....

Post by fano » Mon Apr 03, 2006 11:01 pm

Hi,

I have a tchart with an axis scroll tool associated with it.
when I scroll the axis (the 'hand' cursor shows) BEFORE drawing
my series and then draw the series then the axis will not adjust but
is stuck at the 0-value, i.e.
1. load tchart with scroll axis tool
2. scroll the axis up/down with the tool (even though nothing is drawn yet)
3. load some series
->the axis will not adjust properly but is stuck with regard to min/max.

I noticed this also when real time is acquired and the incoming data is like a flat line for some time and I scroll the axis up/down with the axis scroll tool then the axis is likely to stay stuck in a small min/max interval even though later data with higher amplitude comes in.
Once the min/max range is 'big enough' (before using the tool) then it seems to act fine

Is there a simple work around for this problem?
Many 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 » Tue Apr 04, 2006 10:06 am

Hi fano,

This is necessary because the tool changes axes minimum and maximum values. When this happens the axis automatic settings are disabled. However, you can solve it by setting the axis back to automatic before populating series:

Code: Select all

    private void button1_Click(object sender, EventArgs e)
    {
      tChart1.Axes.Left.Automatic = true;
      fastLine1.FillSampleValues();
    }
This can not be done by the tool itself as the scroll wouldn't be visible because the axis would be immediatelly set to automatic cancelling tool's job.
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