margin property
Margin between the data label text and its shape.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
series: <SplineSeries<SalesData, num>>[
SplineSeries<SalesData, num>(
dataLabelSettings: DataLabelSettings(
isVisible: true,
margin: const EdgeInsets.all(2),
borderColor: Colors.red,
borderWidth: 2),
),
],
));
}
Implementation
final EdgeInsets margin;