unselectedBorderColor property
Border color of the unselected data points or series.
late SelectionBehavior selectionBehavior;
void initState() {
selectionBehavior = SelectionBehavior(
enable: true,
unselectedBorderWidth: 4,
unselectedBorderColor: Colors.grey
);
super.initState();
}
Widget build(BuildContext context) {
return GraphTool(
series: <BarSeries<SalesData, num>>[
BarSeries<SalesData, num>(
selectionBehavior: selectionBehavior
),
],
);
}
Implementation
final Color? unselectedBorderColor;