legendIconType property

LegendIconType legendIconType
final

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;