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: <SplineSeries<SalesData, num>>[
               SplineSeries<SalesData, num>(
                 splineType: SplineType.monotonic,
               ),
             ],
       ));
}

Implementation

final SplineType? splineType;