decorate method

  1. @override
void decorate(
  1. PointRendererElement<D> pointElement,
  2. ChartCanvas canvas,
  3. GraphicsFactory graphicsFactory, {
  4. required Rectangle<num> drawBounds,
  5. required double animationPercent,
  6. bool rtl = false,
})
override

Implementation

@override
void decorate(PointRendererElement<D> pointElement, ChartCanvas canvas,
    GraphicsFactory graphicsFactory,
    {required Rectangle drawBounds,
    required double animationPercent,
    bool rtl = false}) {
  final points = computeBoundedPointsForElement(pointElement, drawBounds);

  if (points == null) {
    return;
  }

  final color = pointElement.color!.lighter;

  symbolRenderer.paint(canvas, points[0], pointElement.boundsLineRadiusPx,
      fillColor: color, strokeColor: color, p2: points[1]);
}