Sample of interactor that handles multiple Y axes zooming

Article ID: 2353
Last updated: 29 May, 2018
Article ID: 2353
Last updated: 29 May, 2018
Revision: 3
Views: 699
Posted: 18 Jun, 2010
by Dean J.
Updated: 29 May, 2018
by Gargani A.

Question

How to implement an interactor that handles multiple Y axes zooming?

Answer

If you have several Y-axes and you want the zoom interactor to zoom all axes equally, there are two ways of implementing this:

  1. 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:

  2. 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.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2353
Last updated: 29 May, 2018
Revision: 3
Views: 699
Posted: 18 Jun, 2010 by Dean J.
Updated: 29 May, 2018 by Gargani A.
Also listed in


Others in this category