color property

Color? color
final

Color of the data label.

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

Implementation

final Color? color;