intercept property

double? intercept
final

Specifies the intercept value of the trendlines.

Defaults to null.

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

Implementation

final double? intercept;