crosshairTooltip property

InteractiveTooltip crosshairTooltip
final

Customizes the crosshair tooltip. Crosshair tooltip displays the current axis value based on the crosshair position at an axis.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: NumericAxis(
              crosshairTooltip: InteractiveTooltip(enable: true)),
       ));
}

Implementation

final InteractiveTooltip crosshairTooltip