【问题标题】:understanding piechart in jfreechart了解 jfreechart 中的饼图
【发布时间】:2012-01-18 05:32:24
【问题描述】:
public static JFreeChart createPieChart(java.lang.String title,
                        PieDataset dataset,
                        boolean legend,
                        boolean tooltips,
                        boolean urls)

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

这是什么意思?

有什么例子吗?

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

【问题讨论】:

    标签: java jfreechart pie-chart


    【解决方案1】:

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

    在使用 url 的测试中有一个新的 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

    我希望这会有所帮助。

    【讨论】:

    • 能否提供实现它的示例链接。
    • @HemantMetalia:有一个使用StandardPieURLGeneratorhere的例子。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多