activationMode property
Defines the gesture for activating the trackball to the closest data point.
- SparkChartActivationMode.tap allows to display the trackball on tap gesture.
- SparkChartActivationMode.doubleTap allows to display the trackball on double tap gesture.
- SparkChartActivationMode.longPress allows to display the trackball on long press gesture.
Also refer SparkChartActivationMode.
Defaults to SparkChartActivationMode.tap
.
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: SfSparkAreaChart(
trackball: SparkChartTrackball(activationMode: SparkChartActivationMode.doubleTap),
data: <double>[18, 24, 30, 14, 28],
)),
);
}
Implementation
final SparkChartActivationMode activationMode;