transformValues method

  1. @override
void transformValues()
override

Transforms the x and y values to screen coordinates.

Implementation

@override
void transformValues() {
  if (xValues.isEmpty || yValues.isEmpty) {
    return;
  }

  points.clear();
  _drawIndexes.clear();
  _highPoints.clear();
  _lowPoints.clear();

  _fillPath.reset();
  _strokePath.reset();

  _calculatePoints(xValues, yValues);
  // Calculated path here for getting gradient bounds.
  _createFillPath(_fillPath, _highPoints, _lowPoints);
}