lineType property

TrackballLineType lineType
final

Type of trackball line. By default, vertical line will be displayed.

You can change this by specifying values to this property.

Defaults to TrackballLineType.vertical.

Also refer TrackballLineType

late TrackballBehavior trackballBehavior;

void initState() {
  trackballBehavior = TrackballBehavior(
    enable: true,
    lineType: TrackballLineType.vertical
  );
  super.initState();
}

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

Implementation

final TrackballLineType lineType;