onPinch method

  1. @override
void onPinch(
  1. ChartAxisRendererDetails axisDetails,
  2. double position,
  3. double scaleFactor
)
override

Performs pinch zooming.

Implementation

@override
void onPinch(ChartAxisRendererDetails axisDetails, double position,
    double scaleFactor) {
  axisDetails.zoomFactor = scaleFactor;
  axisDetails.zoomPosition = position;
}