negativePointColor property

Color? negativePointColor
final

Customizes the 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: SfSparkBarChart(
     negativePointColor: Colors.red
      )
    ),
 );
}

Implementation

final Color? negativePointColor;