onPaint method
void
onPaint(
- PaintingContext context,
- Offset offset,
- SfChartThemeData chartThemeData,
- ThemeData themeData,
Override this method to customize the trackball tooltip labels and it's positions and line rendering.
Implementation
@override
void onPaint(PaintingContext context, Offset offset,
SfChartThemeData chartThemeData, ThemeData themeData) {
_drawTrackballLine(context, offset, chartThemeData, themeData);
// Draw line marker.
_drawMarkers(context, chartThemeData, _lineMarkers);
_drawLabel(context, offset, chartThemeData, themeData);
}