polynomialOrder property

int polynomialOrder
final

Specifies the order of the polynomial for polynomial trendline.

Defaults to 2.

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

Implementation

final int polynomialOrder;