decorate method
void
decorate(
- PointRendererElement<
D> pointElement, - ChartCanvas canvas,
- GraphicsFactory graphicsFactory, {
- required Rectangle<
num> drawBounds, - required double animationPercent,
- 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]);
}