enable property

bool enable
final

Toggles the visibility of the interactive tooltip in an axis.

This tooltip will be displayed at the axis for crosshair and will be displayed near to the trackline for trackball.

Defaults to true.

late TrackballBehavior trackballBehavior;

void initState() {
  trackballBehavior: TrackballBehavior(
    enable: true,
    tooltipSettings: InteractiveTooltip(enable: false)
  );
  super.initState();
}

Widget build(BuildContext context) {
  return SfCartesianChart(
    trackballBehavior: trackballBehavior
  );
}

Implementation

final bool enable;