valueField property
To choose the valueField(low or high) to render the trendline.
Defaults to high
.
Widget build(BuildContext context) {
return SfCartesianChart(
series: <CartesianSeries<ChartData,String>>[
LineSeries<ChartData,String>(
trendlines: <TrendLine>[
Trendline(valueField: 'low')
]
)
]
);
}
Implementation
final String valueField;