splineType property

SplineType? splineType
final

Type of the spline curve. Various type of curves such as clamped, cardinal, monotonic, and natural can be rendered between the data points.

Defaults to splineType.natural

Also refer SplineType

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           selectionGesture: ActivationMode.doubleTap,
           series: <SplineAreaSeries<SalesData, num>>[
               SplineAreaSeries<SalesData, num>(
                 splineType: SplineType.monotonic,
               ),
             ],
       ));
}

Implementation

final SplineType? splineType;