drawNoDataIcon method

  1. @protected
  2. @override
void drawNoDataIcon(
  1. Canvas canvas,
  2. MutableRect bounds,
  3. ChartPaint paint
)
override

Draws two filled circles of different sizes, overlapping, inside bounds.

Implementation

@protected
@override
void drawNoDataIcon(ui.Canvas canvas, MutableRect bounds, ChartPaint paint) {
  paint.style = PaintStyle.FILL;
  final h = bounds.height();
  canvas.drawCircleP(
    bounds.left + bounds.width() * 0.25,
    bounds.top + h * 0.62,
    h * 0.24,
    paint,
  );
  canvas.drawCircleP(
    bounds.left + bounds.width() * 0.66,
    bounds.top + h * 0.38,
    h * 0.34,
    paint,
  );
}