JFreeChart chart = ChartFactory.createPieChart3D("", dataset, false, false, false);
// 设置外层图片 无边框 无背景色 背景图片透明
chart.setBorderVisible(false);
chart.setBackgroundPaint(null);
chart.setBackgroundImageAlpha(0.0f);
PiePlot3D plot = (PiePlot3D) chart.getPlot();
// 饼图的0°起点在3点钟方向,设置为180°是从左边开始计算旋转角度
plot.setStartAngle(180);
// 扇形的旋转方向
plot.setDirection(Rotation.CLOCKWISE);
// 饼图上 无标签提示
plot.setLabelGenerator(null);
// 饼图的透明度
plot.setForegroundAlpha(0.5f);
// 饼图的背景全透明
plot.setBackgroundAlpha(0.0f);
// 去除背景边框线
plot.setOutlinePaint(null);
// 设置外层图片 无边框 无背景色 背景图片透明
chart.setBorderVisible(false);
chart.setBackgroundPaint(null);
chart.setBackgroundImageAlpha(0.0f);
PiePlot3D plot = (PiePlot3D) chart.getPlot();
// 饼图的0°起点在3点钟方向,设置为180°是从左边开始计算旋转角度
plot.setStartAngle(180);
// 扇形的旋转方向
plot.setDirection(Rotation.CLOCKWISE);
// 饼图上 无标签提示
plot.setLabelGenerator(null);
// 饼图的透明度
plot.setForegroundAlpha(0.5f);
// 饼图的背景全透明
plot.setBackgroundAlpha(0.0f);
// 去除背景边框线
plot.setOutlinePaint(null);