plotBand property
Render plot band.
Plot band is also known as stripline, 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: SfSparkBarChart(
plotBand: SparkChartPlotBand(start: 15, end: 25)
)
),
);
}
Implementation
final SparkChartPlotBand? plotBand;