lineColor property

Color? lineColor
final

Color of the crosshair line.

Color will be applied based on the brightness property of the app.

late CrosshairBehavior _crosshairBehavior;

void initState() {
  _crosshairBehavior = CrosshairBehavior(enable: true);
    enable: true,
    lineColor: Colors.red
  );
  super.initState();
}

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

Implementation

final Color? lineColor;