2017-03-03 104 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

回答