transformValues method

  1. @override
void transformValues()
override

Transforms the x and y values to screen coordinates.

Implementation

@override
void transformValues() {
  points.clear();
  _drawIndexes.clear();
  _highPoints.clear();
  _lowPoints.clear();
  _startControlHighPoints.clear();
  _endControlHighPoints.clear();
  _startControlLowPoints.clear();
  _endControlLowPoints.clear();

  _fillPath.reset();
  _strokePath.reset();
  if (_xValues.isEmpty || _highValues.isEmpty || _lowValues.isEmpty) {
    return;
  }

  _calculatePoints();
  _createFillPath(
    _fillPath,
    _highPoints,
    _lowPoints,
    _startControlHighPoints,
    _endControlHighPoints,
    _startControlLowPoints,
    _endControlLowPoints,
  );
}