1

我在报告中使用 jfree 图表。我想从饼图中删除切片部分: 在此处输入图像描述

另外,我想让它以切片值为中心,并在我当前使用的脚本下面提到:

import java.awt.Color;
import org.jfree.chart.plot.PiePlot3D;
import org.jfree.chart.plot.PiePlot;

PiePlot plot = (PiePlot) chart.getPlot();
plot.setSimpleLabels(true);
plot.setOutlineVisible(false);
plot.setOutlinePaint(new Color(0, 0, 0, 0));
plot.setLabelShadowPaint(new Color(0, 0, 0, 0));
plot.setLabelBackgroundPaint(new Color(0, 0, 0, 0));
plot.setLabelOutlinePaint(new Color(0, 0, 0, 0)); 

谁能建议我我们该怎么做..

4

1 回答 1

2

通过使用解决问题plot.setSeparatorsVisible(false)

于 2017-03-09T13:11:12.580 回答