onTrackballPositionChanging property

ChartTrackballCallback? onTrackballPositionChanging
final

Occurs while the trackball position is changed. Here, you can customize the text of the trackball.

late TrackballBehavior _trackballBehavior;

@override
void initState() {
  _trackballBehavior = TrackballBehavior( enable: true);
  super.initState();
 }

Widget build(BuildContext context) {
    return Container(
        child: SfCartesianChart(
            trackballBehavior: _trackballBehavior,
      onTrackballPositionChanging: (TrackballArgs args) => trackball(args)
        )
    );
}
void trackball(TrackballArgs args) {
    args.chartPointInfo = ChartPointInfo();
}

Implementation

final ChartTrackballCallback? onTrackballPositionChanging;