reset method

void reset()

Returns the plot area back to its original position after zooming.

Implementation

void reset() {
  _stateProperties.canSetRangeController = true;
  final SfCartesianChart chart = _stateProperties.chart;
  ChartAxisRendererDetails axisDetails;
  for (int index = 0;
      index < _stateProperties.chartAxis.axisRenderersCollection.length;
      index++) {
    axisDetails = AxisHelper.getAxisRendererDetails(
        _stateProperties.chartAxis.axisRenderersCollection[index]);
    axisDetails.zoomFactor = 1.0;
    axisDetails.zoomPosition = 0.0;
    if (chart.onZoomReset != null) {
      bindZoomEvent(chart, axisDetails, chart.onZoomReset!);
    }
  }
  _stateProperties.zoomPanBehaviorRenderer._zoomingBehaviorDetails
      .createZoomState();
}