tooltipBehavior property

TooltipBehavior tooltipBehavior
final

Customizes the tooltip in chart.

TooltipBehavior _tooltipBehavior;

@override
void initState() {
 _tooltipBehavior = TooltipBehavior(enable: true);
 super.initState();
}

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           tooltipBehavior: _tooltipBehavior
         )
    );
}

Implementation

final TooltipBehavior tooltipBehavior;