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
Automatic Series Min Max failed
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Automatic Series Min Max failed
Hi Marcus,
You can try using any of the following options:
Hope this helps!
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;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Automatic Series Min Max failed
Hello Narcís,
this works pretty fine.
Thank you for the code snippet.
Marcus
this works pretty fine.
Thank you for the code snippet.
Marcus