firstPointColor property

Color? firstPointColor
final

Customizes the marker color of the first data point.

If the first data point is either the high data point or low data point, then the priority will be given to firstPointColor property.

Defaults to null.

@override
Widget build(BuildContext context) {
 return Scaffold(
   body: Center(
       child: SfSparkLineChart(
          firstPointColor: Colors.red,
          marker: SparkChartMarker(displayMode: SparkChartMarkerDisplayMode.all)
      )
    ),
  );
}

Implementation

final Color? firstPointColor;