用于创建图表的 Java 库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5737738/
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
Java library to create diagrams
提问by Konrad Reiche
Is there a good library to create and update diagrams in Java, for instance pie chart, bar diagramm, etc. or can I start to draw them myself with Java2D?
是否有一个很好的库可以在 Java 中创建和更新图表,例如饼图、条形图等,或者我可以开始用 Java2D 自己绘制它们吗?
回答by duffymo
JFreeChartis a great choice. I can recommend it highly.
JFreeChart是一个不错的选择。我可以高度推荐它。
回答by Rui Vieira
If you want to produce graphs (eg visualize numerical data, etc), like duffymo said, JFreeChart is possibly the best option.
如果您想生成图形(例如可视化数字数据等),如 duffymo 所说,JFreeChart 可能是最佳选择。
On the other hand, if you want to create diagrams (ranging from flowcharts to UML) I would then recommend jGraph(open source), or even more powerful (but closed source): yFiles