理解 jfreechart 中的饼图

发布于 2024-12-27 19:41:14 字数 357 浏览 2 评论 0 原文

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

我想知道如何使用最后一个参数 url;

这意味着什么?

有什么例子吗?

配置图表生成 URL?这是什么意思?

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

I want to know about using the last parameter urls;

what does it means?

any example of it?

Configure chart to generate URLs? what does it mean?

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

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

发布评论

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

评论(1

星軌x 2025-01-03 19:41:14

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

查看使用的测试urls 是一个新的 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

我希望这可以有所帮助。

By googling i found this code of the ChartFactory http://www.jfree.org/jfreechart/api/gjdoc/org/jfree/chart/ChartFactory-source.html

Looking in the test of using urls there a instance of a new StandardPieURLGenerator

The jsfreechart help tells:

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

I hope this can help.

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