position property
final
Position of the legend. By default, the legend position is auto. i.e. If the chart width is greater than chart height, then the legend will be placed at the right, else it will be placed at the bottom of the chart.
Defaults to LegendPosition.auto
Also refer LegendPosition
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
legend: Legend(
isVisible: true,
position: LegendPosition.bottom)
));
}
Implementation
final LegendPosition position