TeeChart.Axis.Left.Maximum value not refreshed

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
HQO
Newbie
Newbie
Posts: 25
Joined: Thu Jun 05, 2003 4:00 am
Contact:

TeeChart.Axis.Left.Maximum value not refreshed

Post by HQO » Fri Sep 08, 2006 10:33 am

I noticed following issue in TeeChart...

We have an series, colorGrid (size 175*200) and we added new "row" every 30s by using the timer. Method what was used to add new points is colorGrid1.Add()

New rows are added correctly when colorgrid is in visible but when you minimize the application where TeeChart has and maximized again after 5min it has not drawn the rows during that time when application was minimized?!

We noticed that TeeChart.Axis.Left.Maximum - property value was not updated during that time when application was minimized and that caused the problems, because we look the Axis.Left.Maximum - property every time when start to drawn new lines and now because the property not updated it draws the new lines in always in same place

Have you noticed this issue?

TeeChart version is 1.0.1452.42972

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

Post by Narcís » Fri Sep 08, 2006 10:52 am

Hi HQO,

It works fine for me here using latest TeeChart for .NET v1 bulid available, which is Build 1.1.2379.21122, and the code below.

Code: Select all

		int count = 0;

		private void timer1_Tick(object sender, System.EventArgs e)
		{
			line1.Add(count);
			count++;
			tChart1.Header.Text = tChart1.Axes.Left.Maximum.ToString();			
		}
However, if your using Microsoft .NET Framework v1.0 there's a newer TeeChart for .NET v1 build (1.0.1644.16795) you could use instead of your current build. Could you please try if this build works fine at your end?

If the problem persists, a solution to force this value being calculated could be calling tChart1.Axes.Left.CalcMinMax method, tChart1.Refresh method or even use the line below to internally repaint the chart.

Code: Select all

			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
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply