isVisible property
Determines the visibility of the trendline.
Defaults to true
.
Widget build(BuildContext context) {
return SfCartesianChart(
series: <CartesianSeries<ChartData,String>>[
LineSeries<ChartData,String>(
trendlines: <Trendline>[
Trendline(isVisible: false)
]
)
]
);
}
Implementation
final bool isVisible;