SfSparkAreaChart constructor
SfSparkAreaChart({
- Key? key,
- List<
num> ? data, - SparkChartPlotBand? plotBand,
- double borderWidth = 0,
- Color? borderColor,
- Color? color,
- bool isInversed = false,
- double axisCrossesAt = 0,
- Color? axisLineColor,
- double axisLineWidth = 2,
- List<
double> ? axisLineDashArray, - Color? highPointColor,
- Color? lowPointColor,
- Color? negativePointColor,
- Color? firstPointColor,
- Color? lastPointColor,
- SparkChartMarker? marker,
- SparkChartLabelDisplayMode? labelDisplayMode,
- TextStyle? labelStyle,
- SparkChartTrackball? trackball,
Creates a spark area chart for the provided set of data with its default view.
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: SfSparkAreaChart(
data: <double>[18, 24, 30, 14, 28],
)
),
);
}
Implementation
SfSparkAreaChart(
{Key? key,
List<num>? data,
this.plotBand,
this.borderWidth = 0,
this.borderColor,
this.color,
this.isInversed = false,
this.axisCrossesAt = 0,
this.axisLineColor,
this.axisLineWidth = 2,
this.axisLineDashArray,
this.highPointColor,
this.lowPointColor,
this.negativePointColor,
this.firstPointColor,
this.lastPointColor,
this.marker,
this.labelDisplayMode,
this.labelStyle,
this.trackball})
: _sparkChartDataDetails = SparkChartDataDetails(data: data),
super(key: key);