SfSparkWinLossChart constructor

SfSparkWinLossChart({
  1. Key? key,
  2. List<num>? data,
  3. SparkChartPlotBand? plotBand,
  4. double borderWidth = 0,
  5. Color? borderColor,
  6. Color? tiePointColor,
  7. Color? color,
  8. bool isInversed = false,
  9. double axisCrossesAt = 0,
  10. Color? axisLineColor,
  11. double axisLineWidth = 2,
  12. List<double>? axisLineDashArray,
  13. Color? highPointColor,
  14. Color? lowPointColor,
  15. Color? negativePointColor,
  16. Color? firstPointColor,
  17. Color? lastPointColor,
  18. SparkChartTrackball? trackball,
})

Creates a spark win loss chart for the provided set of data with its default view.

@override
Widget build(BuildContext context) {
 return Scaffold(
   body: Center(
       child: SfSparkWinLossChart(
     data: <double>[18, 24, 30, 14, 28],
      )
    ),
  );
}

Implementation

SfSparkWinLossChart(
    {Key? key,
    List<num>? data,
    this.plotBand,
    this.borderWidth = 0,
    this.borderColor,
    this.tiePointColor,
    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.trackball})
    : _sparkChartDataDetails = SparkChartDataDetails(data: data),
      super(key: key);