start property

double? start
final

Customizes the start position. Define any value between the provided data range as the start value. To make the plot band visible, need to set both the start and end property.

Defaults to null.

@override
Widget build(BuildContext context) {
 return Scaffold(
   body: Center(
       child: SfSparkAreaChart(
     plotBand: SparkChartPlotBand(start: 15, end: 25),
     data: <double>[18, 24, 30, 14, 28],
          )
       ),
    );
}

Implementation

final double? start;