jFreeChart를 사용하고 있으며 범례가있는 원형 차트를 플로팅하고 있습니다. 파이의 반경은 전설에 따라 다릅니다, 그래서 내가 (플롯 영역)JfreeChart가 원형 차트 반경을 수정했습니다.
RingPlot plot = new RingPlot(dataset);
StringBuffer chartFileName = new StringBuffer(Integer.toString(generatedCharts)).append(Long.toString(System.currentTimeMillis())).append(".png");
JFreeChart chart = new JFreeChart("", JFreeChart.DEFAULT_TITLE_FONT, plot, true);
chart.setBackgroundPaint(new GradientPaint(new Point(0, 0), new Color(20, 20, 20), new Point(400, 200), Color.DARK_GRAY));
TextTitle t = chart.getTitle();
t.setHorizontalAlignment(org.jfree.ui.HorizontalAlignment.LEFT);
t.setPaint(new Color(240, 240, 240));
t.setFont(new Font("Arial", Font.BOLD, 26));
plot.setBackgroundPaint(null);
plot.setOutlineVisible(false);
plot.setLabelGenerator(null);
plot.setSectionDepth(0.35);
plot.setSectionOutlinesVisible(false);
plot.setSimpleLabels(true);
plot.setShadowPaint(null);
plot.setOuterSeparatorExtension(0);
plot.setInnerSeparatorExtension(0);
plot.setLabelGenerator(new StandardPieSectionLabelGenerator("{1}",new DecimalFormat("#,##0"), new DecimalFormat("0.000%")));
plot.setLabelBackgroundPaint(null);
plot.setLabelOutlinePaint(null);
Font font=new Font("",0,16);
plot.setLabelFont(font);
chart.getLegend().setFrame(BlockBorder.NONE);
chart.getLegend().setPosition(RectangleEdge.BOTTOM);
chart.setBackgroundPaint(java.awt.Color.white);
chart.setPadding(new RectangleInsets(4, 8, 2, 2));
SO 계정을 열 때 규칙을 읽었습니까? 질문과 관련된 코드가없는 경우 도대체 어떻게 도와 줄 수 있습니까? 또한 [JFreeChart 포럼] (http://www.jfree.org/forum/viewforum.php?f=3&sid=3c0597200f771c6e2829bed40173fb4c)에서 답변을 확인해 주셨습니까? 그들은 거기에도 많은 질문을 대답합니다. – hfontanez
문제를 더 잘 설명하십시오. "원형 차트 (플롯 영역)의 크기를 수정하고 싶습니다"라는 의미는 무엇입니까? 그게 정확히 무슨 뜻입니까? – hfontanez
또한,'dataset'과'generatedCharts'가 적절하게 정의되지 않았습니다. 완전한 코드를 추가하십시오. – hfontanez