Page 1 of 1

Common Custom Y Axis

Posted: Tue Jul 28, 2009 5:13 am
by 13051032
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,

Re: Common Custom Y Axis

Posted: Tue Jul 28, 2009 10:19 am
by narcis
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.