JFreeChart 用于 java swing gui 应用程序中的动态 xy 图
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1304404/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
JFreeChart for dynamic xy plots in java swing gui application
提问by tamizhan
Has anyone worked with JFreeChart-open source library for plotting xy plots?
有没有人使用 JFreeChart 开源库来绘制 xy 图?
Could someone post an example of how to create an xy plot dynamically with the x and y values generated from the program?
有人可以发布一个示例,说明如何使用程序生成的 x 和 y 值动态创建 xy 图吗?
And where can i get a turorial doc or something of that kind to know about how to use the JFreeChart for developing applications?
我在哪里可以获得 turorial 文档或类似的东西来了解如何使用 JFreeChart 开发应用程序?
Thanks in advance..
提前致谢..
采纳答案by butterchicken
Have you tried looking at the JFreeChart demos? See here.
您是否尝试过查看 JFreeChart 演示?见这里。
If you find a sample that suits what you want to do, searching for the name of the demo in Google often pulls up the demo source code from (for example) Koders: PieChartDemo1.java
如果你找到一个适合你想要做的样本,在谷歌搜索演示的名称通常会从(例如)Koders 中提取演示源代码:PieChartDemo1.java
回答by adatapost
I hope, the following links will help you,
希望以下链接对您有所帮助
回答by Brian Agnew
Thisis a sizeable set of JFreeChart examples, including source code for each example. There's a set of XY-chartexamples. I did pay for the manuals some time ago, but in fact the examples above are sufficient to get you where you want to be.
这是一组相当大的 JFreeChart 示例,包括每个示例的源代码。有一组XY 图表示例。前段时间我确实为手册付费,但实际上上面的例子足以让你到达你想要的地方。
Note that JFreeChart claims not to be suitable for fast dynamic updating, although in practice I've never found any problems with this.
请注意,JFreeChart 声称不适合快速动态更新,尽管在实践中我从未发现任何问题。