Common Custom Y Axis

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
asupriya
Advanced
Posts: 179
Joined: Mon Dec 01, 2008 12:00 am

Common Custom Y Axis

Post by asupriya » Tue Jul 28, 2009 5:13 am

I have a scenario where users can optionally choose to have common custom Y-axis for more than one series. For example, say, fastlineseries1 has a customYAxis and then user adds a fastlineseries2 with same customYAxis as that of fastlineseries1 for the same chart. Now, when user removes the fastlineseries1 (by default we dispose the associated customYAxis with the series) from the displayed chart, the fastlineseries2 is shown without any axis.

We want to check to see if a given customYAxis has more than one series associated with it before removing the customYAxis. Is there a way to check if a given customYAxis any associated series (or at least the count of associated series).

Thanks,

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

Re: Common Custom Y Axis

Post by Narcís » Tue Jul 28, 2009 10:19 am

Hi asupriya,

No, there's no such property. You will have to loop all the series in the chart and check if their VertAxis property is assigned to the chart you are trying to remove. Only remove given axis when it only has one series associated.
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