java - Hide Labels from JFree Spider Chart -


I am trying to hide all the labels on my Spider Chart using the Jeff Library.

I lead to believe that the following line will work, but I am getting an error while adding it.

  webPlot.setLabelGenerator (null);  

My code:

  Private static JFreeChart createSpiderChart (DefaultCategoryDataset Dataset) {Spider webpage webplot = new SpiderWobot (dataset); Font label font = new font ("arial", font. Ba, 10); CategoryToolTipGenerator Tooltip Generator = New StandardCategoryToolTipGenerator (); Tooltip Generator.generateToolTip (Dataset, 1, 0); Color back_color = new color (255,255,255,0); WebPlot.setOutlineVisible (false); WebPlot.setLabelFont (labelFont); WebPlot.setSeriesPaint (0, java.awt.Color.decode ("# 000000")); WebPlot.setSeriesPaint (1, java.awt.Color.decode ("# 209ad4")); WebPlot.setBackgroundPaint (back_color); WebPlot.setLabelGenerator (zero); / ** This is an error ** / JFreeChart charts = new JFreeChart ("", blank / * JFreeChart.DEFAULT_TITLE_FONT * /, webpage, wrong); Chart.setBorderVisible (wrong); Image icon icon = new image icon ("C: \\ test charts \\ report-property \\ chart-bg. Gif"); Chart.setBackgroundImage (icon.getImage ()); Return chart; }  

My error:

  java.lang.IllegalArgumentException: zero 'generator' argument. JavaAgent.createSpiderChart on org.jfree.chart.plot.SpiderWebPlot.setLabelGenerator (SpiderWebPlot.java:993) at org.jfree.chart.util.ParamChecks.nullNotPermitted (Java) at JavaAgent.otespetitart on JavaAgent.NotesMain (ParamChecks.java:65) Unknown source (Lotus.domino.AgentBase.RunNotes) (Unknown Source) on Lotus.domino.NotesThread.run (unknown source)  

Any ideas and thanks in advance.

The API is very clear: is not allowed . You can try different spaces for your category dataset by using different spaces for columnKey .


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -