lineDashArray property
Dashes of the crosshair line.
Any number of values can be provided in the list. Odd value is considered as rendering size and even value is considered as gap.
Defaults to [0,0]
.
late CrosshairBehavior _crosshairBehavior;
void initState() {
_crosshairBehavior = CrosshairBehavior(
enable: true,
lineDashArray: [10,10]
);
super.initState();
}
Widget build(BuildContext context) {
return SfCartesianChart(
crosshairBehavior: _crosshairBehavior
);
}
Implementation
final List<double>? lineDashArray;