onPaint method

  1. @override
void onPaint(
  1. PaintingContext context,
  2. Offset offset,
  3. SfChartThemeData chartThemeData,
  4. 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);
}