didRangeChange method

  1. @override
void didRangeChange(
  1. RenderChartAxis axis
)

Implementation

@override
void didRangeChange(RenderChartAxis axis) {
  if (parent == null) {
    return;
  }

  if (axis == xAxis) {
    _isXRangeChanged = true;
    _findVisibleIndexes();
  }

  if (axis == yAxis) {
    _isYRangeChanged = true;
  }

  if (_isXRangeChanged || _isYRangeChanged) {
    parent!.behaviorArea?.hideInteractiveTooltip();
  }

  if (controller.isVisible) {
    markNeedsLayout();
  }
}