useSeriesColor property

bool useSeriesColor
final

Uses the series color for filling the data label shape

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           series: <SplineSeries<SalesData, num>>[
               SplineSeries<SalesData, num>(
                 dataLabelSettings: DataLabelSettings(
                      isVisible: true,
                      useSeriesColor: true),
               ),
             ],
       ));
}

Implementation

final bool useSeriesColor;