intercept property

double? intercept
final

Specifies the intercept value of the trendlines.

Defaults to null.

Widget build(BuildContext context) {
  return SfCartesianChart(
    series: <CartesianSeries<ChartData,String>>[
      LineSeries<ChartData,String>(
        trendlines: <TrendLine>[
          Trendline(intercept: 20)
        ]
      )
    ]
  );
}

Implementation

final double? intercept;