如何处理JFreeChart中的SpiderWebPlot?
在发现 JFreeChart 时,我使用 SpiderWebPlot< 遇到了问题/a>.
这就是我今天的
我的值为 {2, 2, 1.5}
默认设置最大值到我的数据集的最大值(此处为 2),但我想将其设置为 5,如您所见,它确实做到了,但它没有绘制 2 到 5 之间的值的线。
我如何以编程方式绘制它们?
评论后更新:
SpiderWebPlot plot = (SpiderWebPlot)chart.getPlot();
plot.setMaxValue(5.00);
plot.setHeadPercent(0.01);
return chart;
我通过另一个应用程序使用 JFreeChart,该应用程序使我可以直接控制图表变量。这样我介绍的那段代码。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
显示的线条似乎不是
JFreeChart
的功能。这可能是由扩展 代码,应与您的版本进行比较。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.