Joë*_*als 2 java jfreechart java-ee
我在从servlet发送的JSP页面中使用JFreeChart.
但是我无法删除图表周围的灰色边框(参见屏幕截图).
带边框的jfreechart http://www.craenhals.eu/images/jfreechart.png
我怎么能删除它?
我使用以下代码在我的servlet中生成图表:
PiePlot plot = new PiePlot(dataset);
StandardPieSectionLabelGenerator labels = new StandardPieSectionLabelGenerator("{0} = {2}");
plot.setLabelGenerator(labels);
plot.setInteriorGap(0);
plot.setBackgroundPaint(Color.white);
plot.setBaseSectionOutlinePaint(Color.blue);
plot.setBaseSectionPaint(Color.green);
plot.setShadowPaint(Color.black);
plot.setShadowXOffset(0);
plot.setShadowYOffset(0);
plot.setOutlineVisible(false);
chart = new JFreeChart("", plot);
chart.setPadding(new RectangleInsets(0, 0, 0, 0));
chart.setBorderVisible(false);
chart.clearSubtitles();
Run Code Online (Sandbox Code Playgroud)
我在这里错过了什么?我也在我的JSP中使用此代码来嵌入图像:
<img
src="<c:url value="/beheerder/statistieken?actie=chart_contactwijze"/>"
title="Contactwijze" border="0"/>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7323 次 |
| 最近记录: |