作者:AK47GXF | 来源:互联网 | 2023-05-27 13:33
我正在JSF中开发一个Web应用程序,我正在使用PrimeFaces条形图.我想改变传奇的位置.我验证了Primefaces:他们使用的帖子中的Charts和Legend位置,
但在primeface 5.1中却没有
我的输出看起来像,

预期产量:

我怎样才能做到这一点?有人建议我正确的方法吗?
1> Jaqen H'ghar..:
你可以在bean上做到这一点:
BarChartModel model = new BarChartModel();
model.setLegendPosition("e");
model.setLegendPlacement(LegendPlacement.OUTSIDEGRID);