tooltipPosition property

TooltipPosition tooltipPosition
final

Show tooltip at tapped position.

Defaults to TooltipPosition.auto.

late TooltipBehavior tooltipBehavior;

void initState() {
  tooltipBehavior = TooltipBehavior(
    enable: true,
    tooltipPosition: TooltipPosition.pointer
  );
  super.initState();
}

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

Implementation

final TooltipPosition tooltipPosition;