toChart method

  1. @override
PdfPoint toChart(
  1. PdfPoint p
)
override

Implementation

@override
PdfPoint toChart(PdfPoint p) {
  const z = 3.0;
  return PdfPoint(
    z * p.y * math.cos(p.x / 7 * math.pi * 2) + gridBox.width / 2,
    z * p.y * math.sin(p.x / 7 * math.pi * 2) + gridBox.height / 2,
  );
}