How to find height of tallest bar in bar chart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Neelam
Advanced
Posts: 193
Joined: Fri Jun 08, 2007 12:00 am

How to find height of tallest bar in bar chart

Post by Neelam » Mon Nov 10, 2008 6:44 am

Hi
I have a bar chart
How to know the value of highest bar ? That is for example there are 3 bars. the tallest bar is 460 while the shortest is 200 on Yaxis. So I want a function or command to know the value of tallest bar in this case its (460).

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

Post by Narcís » Mon Nov 10, 2008 10:00 am

Hi shikha,

You can use MaxYValue property for that:

Code: Select all

			double maxVal = bar1.MaxYValue();
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