如何在底部中心对齐图例

nik*_*sti 5 charts flutter

我正在使用谷歌图表进行抖动并尝试在底部中间对齐图例。

我试过使用,outsideJustification: charts.OutsideJustification.middleDrawArea但它仍然左对齐。是否可以选择在中心对齐图例?

这就是我所拥有的

charts.NumericComboChart(
        data,
        animate: true,
        // hide Axis
        primaryMeasureAxis: noneAxisRenderer,
        // hide Axis
        secondaryMeasureAxis: noneAxisRenderer,
        // hide Axis
        domainAxis: noneAxisRenderer,
        // Configure the default renderer as a line renderer. This will be used
        // for any series that does not define a rendererIdKey.
        defaultRenderer: charts.LineRendererConfig(),
        // Custom renderer configuration for the point series.
        behaviors: [
          charts.SeriesLegend(
            position: charts.BehaviorPosition.bottom,
            cellPadding: EdgeInsets.symmetric(horizontal: 2.0),
            outsideJustification: charts.OutsideJustification.middleDrawArea,
          ),
        ],
      );
Run Code Online (Sandbox Code Playgroud)

这导致: 在此处输入图片说明