negativePointColor property
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: SfSparkWinLossChart(
negativePointColor: Colors.red,
data: <double>[18, 24, 30, 14, 28],
)),
);
}
Implementation
final Color? negativePointColor;