plotBand property

SparkChartPlotBand? plotBand
final

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.

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

Implementation

final SparkChartPlotBand? plotBand;