plotBand property

SparkChartPlotBand? plotBand

Render plot band.

Plot band is also known as strip-line, which is used to shade the different ranges in plot area with different colors to improve the readability of the chart.

Plot bands are drawn based on the axis.

Provides the property of start, end, color, borderColor, and borderWidth to customize the appearance.

Defaults to null.

Widget build(BuildContext context) {
 return Scaffold(
   body: Center(
       child: SfSparkAreaChart(
     plotBand: SparkChartPlotBand(start: 15, end: 25)


final SparkChartPlotBand? plotBand;