borderColor property

Color borderColor
final

Border color of the data label.

Defaults to Colors.transparent.

Widget build(BuildContext context) {
  return SfCartesianChart(
    series: <SplineSeries<SalesData, num>>[
      SplineSeries<SalesData, num>(
        dataLabelSettings: DataLabelSettings(
          isVisible: true,
          borderColor: Colors.red,
          borderWidth: 2
        ),
      ),
    ],
  );
}

Implementation

final Color borderColor;