drawDataMarker method
void
drawDataMarker(
- int index,
- Canvas canvas,
- Paint fillPaint,
- Paint strokePaint,
- double pointX,
- double pointY, [
- CartesianSeriesRenderer? seriesRenderer,
override
Draws marker with different shape and color of the appropriate data point in the series.
Implementation
@override
void drawDataMarker(int index, Canvas canvas, Paint fillPaint,
Paint strokePaint, double pointX, double pointY,
[CartesianSeriesRenderer? seriesRenderer]) {
final SeriesRendererDetails seriesRendererDetails =
SeriesHelper.getSeriesRendererDetails(seriesRenderer!);
final Size size = Size(seriesRendererDetails.series.markerSettings.width,
seriesRendererDetails.series.markerSettings.height);
final Path markerPath = getMarkerShapesPath(
seriesRendererDetails.series.markerSettings.shape,
Offset(pointX, pointY),
size,
seriesRendererDetails,
index,
null,
seriesRendererDetails.seriesElementAnimation,
_segment);
canvas.drawPath(markerPath, strokePaint);
canvas.drawPath(markerPath, fillPaint);
}