width property
final
The width of the legend. It takes percentage value from the overall chart width.
Defaults to null
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
legend: Legend(
isVisible: true,
width: '30%')
));
}
Implementation
final String width