Page 1 of 1

facing a bug in Undone Zoom Event

Posted: Fri Apr 10, 2009 12:06 am
by 14050296
Hi,

I am facing a bug in the UndoneZoom event of the Tee chart.

In the event handler of UndoneZoom when I am trying to access the Minimum and Maximum of the Bottom Axis, it gives me the Minimum and maximum of the Zoomed state. Is that a bug in the TeeChart?


Regards,

Rajesh Dhiman

Posted: Tue Apr 14, 2009 7:45 am
by narcis
Hi Rajesh,

No, I don't think so. You can do something like this:

Code: Select all

			if (tChart1.Series.Count>0)
			{
				double min = tChart1[0].MinXValue();
				double max = tChart1[0].MaxXValue();

				for (int i = 1; i < tChart1.Series.Count; i++)
				{
					min = Math.Min(min, tChart1[i].MinXValue());
					max = Math.Max(max, tChart1[i].MaxXValue());
				} 
			}