Page 1 of 1

Detection of active axes

Posted: Thu Jan 24, 2008 12:01 am
by 15048063
I have a chart on which all the axes are active (top, bottom, right and left). When a user adds a series, they may choose which is to be the horizontal, and which is to be the vertical axis.

Obviously, if there is no series using an axis, it is not rendered, even if the axis is set as active and visible.

My question is, how can I detect whether an axis is being used (and rendered)? Do I have to write a helper function that iterates through the series and finds which axes are inactive? Or is there a property or method to do it directly?

Posted: Thu Jan 24, 2008 11:14 am
by narcis
Hi Western Power,

I think the only solution is as you suggested, iterating through all the series and check which axes are using.