legendItemText property

  1. @override
String? legendItemText
final

Text to be displayed in legend.

By default, the series name will be displayed in the legend. You can change this by setting values to this property.

Defaults to ‘’

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           series: <LineSeries<SalesData, String>>[
                  LineSeries<SalesData, String>(
                      legendItemText: 'legend',
                 ),
            ],
       ));
}

Implementation

@override
final String? legendItemText;