How to deal with SpiderWebPlot in JFreeChart?

好久不见. 提交于 2019-12-24 01:46:51

问题


Discovering JFreeChart, I hit a problem using SpiderWebPlot.

This is what I have today

My values are {2, 2, 1.5}

By default max value is set to the max value of my dataset (here 2) but I want to set it to 5 which as you can see it did but it did not draw the lines for the value between 2 and 5.

How can I progamatically draw them ?

UPDATE AFTER COMMENT :

SpiderWebPlot plot = (SpiderWebPlot)chart.getPlot();
plot.setMaxValue(5.00);
plot.setHeadPercent(0.01);

return chart;

I am using JFreeChart through another application that gives me the hand directly on the chart variable. So that the piece of code I introduced.


回答1:


The lines shown do not appear to be a feature of JFreeChart. This may be an anomaly introduced by whomever extended the code, with which your version should be compared.



来源:https://stackoverflow.com/questions/5501702/how-to-deal-with-spiderwebplot-in-jfreechart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!