Page 1 of 1

Automatic Series Min Max failed

Posted: Tue Jan 19, 2010 12:54 pm
by 9640089
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

Re: Automatic Series Min Max failed

Posted: Tue Jan 19, 2010 3:37 pm
by narcis
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!

Re: Automatic Series Min Max failed

Posted: Mon Feb 01, 2010 10:05 am
by 9640089
Hello NarcĂ­s,

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

Marcus