orientation property

LegendItemOrientation orientation
final

Orientation of the legend.

The legend items will be placed either in horizontal or in vertical orientation. By default, it is set to auto, i.e. if the legend position is top or bottom, orientation is set to horizontal, else it is set to vertical.

Defaults to LegendItemOrientation.auto

Also refer LegendItemOrientation

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           legend: Legend(
              isVisible: true,
              orientation: LegendItemOrientation.vertical)
       ));
}

Implementation

final LegendItemOrientation orientation;