How to deal with SpiderWebPlot in JFreeChart?

2019-07-16 07:23发布

Discovering JFreeChart, I hit a problem using SpiderWebPlot.

This is what I have today

enter image description here

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条回答
Lonely孤独者°
2楼-- · 2019-07-16 08:12

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.

查看更多
登录 后发表回答