在我JfreeChart的 中,标签格式是{0}, {1}, {2}.
这里{0}代表饼图section key,{1}代表section value,{2}代表百分比。
我正在使用以下代码在饼图中设置标签
plot.setLabelGenerator(new StandardPieSectionLabelGenerator("{1}"));
让我们假设图表有 2 个部分。value({1})第一段是200,第二段是150。我的要求是这样的:
plot.setLabelGenerator(new StandardPieSectionLabelGenerator("{1}" * 3));
谁能告诉如何修改这个值?