facing a bug in Undone Zoom Event

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
ltang
Newbie
Newbie
Posts: 8
Joined: Mon Sep 15, 2008 12:00 am
Contact:

facing a bug in Undone Zoom Event

Post by ltang » Fri Apr 10, 2009 12:06 am

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

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

Post by Narcís » Tue Apr 14, 2009 7:45 am

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());
				} 
			}
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