drawData method

  1. @override
void drawData(
  1. Canvas c
)
override

Draws the data of the chart (bars, lines, slices, ...) onto c. Called first in a draw pass, with the canvas clipped to the content rectangle when the chart clips data.

Implementation

@override
void drawData(ui.Canvas c) {
  final bubbleData = chart.bubbleData;
  if (bubbleData == null) return;

  for (final set in bubbleData.dataSets) {
    if (set.isVisible) drawDataSet(c, set);
  }
}