legendIconType property
Specifies the type of legend icon for trendline.
Defaults to LegendIconType.HorizontalLine
.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
series: <CartseianSeries<dynamic,dynamic>>[
LineSeries<dynamic,String>(
trendlines: <TrendLine>[
Trendline(legendIconType: LegendIconType.circle)
])
]
));
}
Implementation
final LegendIconType legendIconType;