transformValues method
Transforms the x and y values to screen coordinates.
Implementation
@override
void transformValues() {
if (x.isNaN || y.isNaN || radius.isNaN) {
segmentRect = null;
_oldSegmentRect = null;
points.clear();
return;
}
points.clear();
final double pixelX = series.pointToPixelX(x, y);
final double pixelY = series.pointToPixelY(x, y);
final Offset center = Offset(pixelX, pixelY);
final double size = radius * 2.0;
segmentRect = Rect.fromCircle(center: center, radius: size);
_oldSegmentRect ??= Rect.fromCircle(center: center, radius: 0.0);
points.add(center);
}