Edit this page

Pan and Zoom

VictoryZoom will handle panning and zooming behavior by binding to mouse or touch events and updating the domain accordingly. Any single child of VictoryChart or VictoryGroup will be rendered with zoom behavior attached.

            

Triggering updates

VictoryZoom provides a couple of hooks for updating and listening to changes on its domain, thereby allowing your zoom or pan control to update based on some external data change. Any changes to zoomDomain will trigger an update to the pan/zoom location. Whilst changes caused by VictoryZoom internal events will trigger an onDomainChange.