plotBand property
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: SfSparkLineChart(
plotBand: SparkChartPlotBand(start: 15, end: 25),
data: <double>[18, 24, 30, 14, 28],
)),
);
}
Implementation
final SparkChartPlotBand? plotBand;