|| | |||Browse by category|
How to implement an interactor that handles multiple Y axes zooming?
If you have several Y-axes and you want the zoom interactor to zoom all axes equally, there are two ways of implementing this:
The default implementation of IlvChartZoomInteractor performs zoom on the Y-axis of the chart whose index has been specified to the IlvChartZoomInteractor constructor.
Whenever there are several Y-axes, only the specified one will be zoomed.
You can subclass IlvChartZoomInteractor and implement this functionality yourself to perform a zoom on every Y-axis.
Here is a sample composed of a subclass of IlvChartZoomInteractor and a small chart example to show the behavior of the custom zoom interactor:
You can install an AxisListener on the first Y-axis that will adjust
the remaining Y-axes whenever the visible range of the first Y-axis changes.