negativePointColor property

Color? negativePointColor
final

Customizes the marker color of negative data point and data point value less than the axisCrossesAt value.

If the negative data point is either the high or low, first or last data point, then priority will be given to those colors.

Defaults to null.

@override
 Widget build(BuildContext context) {
 return Scaffold(
   body: Center(
       child: SfSparkAreaChart(
     marker: SparkChartMarker(displayMode: SparkChartMarkerDisplayMode.all),
     negativePointColor: Colors.red,
     data: <double>[18, 24, 30, -14, 28],
   )),
 );
}

Implementation

final Color? negativePointColor;