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 (controller.isVisible) {
    markNeedsLayout();
  }
}