Page 1 of 1

TeeChart.Axis.Left.Maximum value not refreshed

Posted: Fri Sep 08, 2006 10:33 am
by 8120359
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

Posted: Fri Sep 08, 2006 10:52 am
by narcis
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;