borderColor property

Color? borderColor
final

Border color of the interactive tooltip.

Used to change the stroke color of the axis tooltip.

Defaults to Colors.black.

late TrackballBehavior trackballBehavior;

void initState() {
  trackballBehavior = TrackballBehavior(
    enable: true,
    tooltipSettings: InteractiveTooltip(
      borderColor: Colors.red,
      borderWidth: 3
    )
  );
  super.initState();
}

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

Implementation

final Color? borderColor;