paint abstract method

void paint(
  1. ChartPaintContext context,
  2. SeriesRenderSnapshot snapshot
)

Paints the series' visible slice, after behind-series decorations and before above-series decorations, in the order series are listed. May publish paint products on snapshot (see SeriesRenderSnapshot.geometry) for decorations painted above.

The canvas is clipped to the viewport, not to the plot rectangle, so a mark near an edge may extend into the axis label bands. Clip to ChartPaintContext.plotRect yourself if your series needs that.

Implementation

void paint(ChartPaintContext context, SeriesRenderSnapshot snapshot);