2017-03-03 118 views
0

的SpiderWebPlot我创建使用SpiderWebPlot的 JFreeChart的蜘蛛图。 轴标签不会显示在图表的生成图像中。显示完整轴标签中的JFreeChart

应该如何在图像中显示标签?

这里是我的代码:

SpiderWebPlot plot = new SpiderWebPlot(categoryDataSet); 
      plot.setStartAngle(90); 
      plot.setInteriorGap(0.30); 
      plot.setWebFilled(true); 
      plot.setBackgroundPaint(new Color (215, 215, 215)); 
      plot.setOutlineVisible(true); 

从上述情节生成图片如下:

Generated Image of spider web chart

+0

看起来你划掉了图像中的标签;请澄清;更多[这里](http://stackoverflow.com/search?tab=votes&q=user%3a230513%20%5bjfreechart%5d%20SpiderWebPlot)。 – trashgod

+0

@trashgod是啊标签图像,你可以告诉他们是否可以通过把图像放在图像或宽度提供给图表?我已经通过上面的链接。 –

+0

我会覆盖'getPreferredSize()',例如[(http://stackoverflow.com/a/10277372/230513))。 – trashgod

回答