zoom

open override fun zoom(zoomFactor: Float, pivot: Float)

Asks the AxisState to compute new ranges and tick values after zooming, if the axis supports zooming.

Parameters

zoomFactor

Amount to zoom about the pivot. Must be greater than 0, where values less than 1 zoom out and values greater than 1 zoom in.

pivot

The point around which to zoom. Must be between 0 and 1, and represents the distance of the pivot point from the minimum value as a fraction of the overall range of the AxisState. That is, to zoom about a particular point, pivot should be the value returned by computeOffset.