如何在JFreeChart中处理SpiderWebPlot? [英] How to deal with SpiderWebPlot in JFreeChart?

查看:171
本文介绍了如何在JFreeChart中处理SpiderWebPlot?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

发现JFreeChart,我使用 SpiderWebPlot .

Discovering JFreeChart, I hit a problem using SpiderWebPlot.

这就是我今天所拥有的

我的值为{2,2,1.5}

My values are {2, 2, 1.5}

默认情况下,最大值设置为我的数据集的最大值(此处为2),但我想将其设置为5(如您所见),但是它并未绘制2到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 ?

评论后更新:

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

return chart;

我正在通过另一个应用程序使用JFreeChart,该应用程序直接在图表变量上提供了帮助.这样我就介绍了这段代码.

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.

推荐答案

显示的行似乎不是代码,应该与您的版本进行比较.

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.

这篇关于如何在JFreeChart中处理SpiderWebPlot?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆