了解jfreechart中的饼图

时间:2012-01-18 05:32:25

标签: java jfreechart pie-chart

public static JFreeChart createPieChart(java.lang.String title,
                        PieDataset dataset,
                        boolean legend,
                        boolean tooltips,
                        boolean urls)

我想知道使用最后一个参数网址;

这意味着什么?

它的任何一个例子?

配置图表以生成网址?这是什么意思?

1 个答案:

答案 0 :(得分:1)

通过Google搜索,我找到了ChartFactory http://www.jfree.org/jfreechart/api/gjdoc/org/jfree/chart/ChartFactory-source.html

的代码

查看使用网址的测试,有一个新的StandardPieURLGenerator

的实例

jsfreechart帮助告诉:

Interface for a URL generator for plots that use data from a PieDataset. Classes that implement this interface:
 - are responsible for correctly escaping any text that is derived from the dataset, as this may be user-specified and could pose a security risk;
 - should be either (a) immutable, or (b) cloneable via the PublicCloneable interface (defined in the JCommon class library). This provides a mechanism for the referring plot to clone the generator if necessary.

http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/urls/PieURLGenerator.html

我希望这可以提供帮助。