height property

String? height
final

The height of the legend.

It takes percentage value from the overall chart height.

Defaults to null.

Widget build(BuildContext context) {
  return SfCartesianChart(
    legend: Legend(
      isVisible: true,
      height: '30%'
    )
  );
}

Implementation

final String? height;