如何处理JFreeChart中的SpiderWebPlot?

发布于 2024-10-27 21:30:55 字数 630 浏览 4 评论 0原文

在发现 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

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

潜移默化 2024-11-03 21:30:55

显示的线条似乎不是 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文