tooltipDisplayMode property
Display mode of tooltip.
By default, tooltip of all the series under the current point index value will be shown.
Defaults to TrackballDisplayMode.floatAllPoints
.
Also refer TrackballDisplayMode.
late TrackballBehavior trackballBehavior;
void initState() {
trackballBehavior = TrackballBehavior(
enable: true,
tooltipDisplayMode: TrackballDisplayMode.groupAllPoints
);
super.initState();
}
Widget build(BuildContext context) {
return SfCartesianChart(
trackballBehavior: trackballBehavior
);
}
Implementation
final TrackballDisplayMode tooltipDisplayMode;