Detection of active axes
Posted: Thu Jan 24, 2008 12:01 am
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?
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?