borderDrawMode property
Border type of area series.
It has three types of BorderDrawMode,
-
BorderDrawMode.all renders border for all the sides of area.
-
BorderDrawMode.top renders border only for top side.
-
BorderDrawMode.excludeBottom renders border except bottom side.
Defaults to BorderDrawMode.top
.
Also refer BorderDrawMode.
Widget build(BuildContext context) {
return SfCartesianChart(
series: <AreaSeries<SalesData, num>>[
AreaSeries<SalesData, num>(
borderWidth: 3,
borderColor: Colors.red,
borderDrawMode: BorderDrawMode.all,
),
],
);
}
Implementation
final BorderDrawMode borderDrawMode;