polynomialOrder property

int polynomialOrder
final

Specifies the order of te polynomial for polynomial trendline.

Defaults to 2.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           series: <CartseianSeries<dynamic,dynamic>>[
             LineSeries<dynamic,String>(
               trendlines: <TrendLine>[
                 Trendline(
                 type: TrendlineType.polynomial,
                 polynomialOrder: 4)
               ])
           ]
       ));
}

Implementation

final int polynomialOrder;