Automatic Series Min Max failed

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
schafma
Newbie
Newbie
Posts: 10
Joined: Wed Jan 25, 2006 12:00 am

Automatic Series Min Max failed

Post by schafma » Tue Jan 19, 2010 12:54 pm

Hello,

I'm filling a pointer series using the direct array method explained in the FAQ:

Series.XValues.Value = xArr
Series.XValues.Count = xArr.Length
Series.YValues.Value = yArr
Series.YValues.Count = yArr.Length

for a new series this works absolutly fine.
If I want to change the series by assigning new arrays for x and y values the charts axes do not refresh automatically. Using the Visual Studio Debugger I figured out, that the series Minimum and maximum values do not change after assigning the new arrays. Unfortunatly the .Modified property mentioned in the FAQ is not available in my version fo teeChart (2.0.2306.26232). What is the correct procedure for this? I don't want to check the min and max by myself and set the Axis MinMax values manually, also this works.

Thanx,
Marcus

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Automatic Series Min Max failed

Post by Narcís » Tue Jan 19, 2010 3:37 pm

Hi Marcus,

You can try using any of the following options:

Code: Select all

			tChart1.Series[0].RefreshSeries();
			tChart1.Series[0].Repaint();
			tChart1.Series[0].Invalidate();
			tChart1.Refresh();
			tChart1.Invalidate();
			Bitmap bmp = tChart1.Bitmap;
Hope this helps!
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

schafma
Newbie
Newbie
Posts: 10
Joined: Wed Jan 25, 2006 12:00 am

Re: Automatic Series Min Max failed

Post by schafma » Mon Feb 01, 2010 10:05 am

Hello Narcís,

this works pretty fine.
Thank you for the code snippet.

Marcus

Post Reply