legendIconType property

  1. @override
LegendIconType legendIconType
final

Shape of the legend icon.

Any shape in the LegendIconType can be applied to this property. By default, icon will be rendered based on the type of the series.

Defaults to `LegendIconType.seriesType``

Also refer LegendIconType

Widget build(BuildContext context) {
   return Container(
       child: SfCircularChart(
          series: <PieSeries<ChartData, String>>[
               PieSeries<ChartData, String>(
                 legendIconType: LegendIconType.diamond,
                 )
               ),
             ],
       ));
}

Implementation

@override
final LegendIconType legendIconType;