drawDataLabel method

  1. @override
void drawDataLabel(
  1. int index,
  2. Canvas canvas,
  3. String dataLabel,
  4. double pointX,
  5. double pointY,
  6. int angle,
  7. TextStyle style,
)
override

To customize each data labels.

Implementation

@override
void drawDataLabel(int index, Canvas canvas, String dataLabel, double pointX,
        double pointY, int angle, TextStyle style) =>
    drawText(canvas, dataLabel, Offset(pointX, pointY), style, angle);