从图中可以看出,指向饼图各部分的箭头标签在左侧重叠。有没有办法缩小标签的字体以便更适合?或者让他们出去,这样他们就不会重叠?强文本
问问题
615 次
1 回答
0
您可以使用以下代码将图表旋转某个角度
JFreeChart chart = ChartFactory.createPieChart3D("World Polulation by Countries ", dataset, true, true, true);
PiePlot plot = (PiePlot) chart.getPlot();
plot.setPieIndex(0);
// plot.setLabelFont(new Font("SansSerif", Font.NORMAL, 12));
plot.setNoDataMessage("No data available");
plot.setCircular(false);
plot.setLabelLinksVisible(true);
// plot.zoom(200);
// plot.setStartAngle(180);
// plot.setLabelBackgroundPaint(paint);
plot.setLabelLinkMargin(0.01);
return chart;
于 2015-03-24T14:35:29.017 回答