Pie, Bar, Line charts in java? [closed]

2019-05-22 16:25发布

I want to use Pie, Bar, Line charts in java. What is the best API to use them? Is there any API by Sun to create these types of charts?

5条回答
Fickle 薄情
2楼-- · 2019-05-22 17:06

Use jFreeChart

"JFreeChart is "open source" or, more specifically, free software. It is distributed under the terms of the GNU Lesser General Public Licence (LGPL), which permits use in proprietary applications."

查看更多
成全新的幸福
3楼-- · 2019-05-22 17:07

take a look at JFreeChart.. it's not by SUN but it's quite notorious (and by the way I don't think JDK ships with any kind of graph API)

查看更多
啃猪蹄的小仙女
4楼-- · 2019-05-22 17:09

Use JFreeChart like everyone who responded suggested or if that doesn't work for you check this SO question:
what-is-the-best-open-source-java-charting-library-other-than-jfreechart

查看更多
女痞
5楼-- · 2019-05-22 17:11

JFreeChart is free to use, and there are numerous "simple" examples on their website, as well as API documentation.

If it's useful to you, and if you start using anything more than really basic graphs, you might consider purchasing the full documentation with more detailed examples and guides on how to use it to the max of its power. It will certainly boost your productivity and also help to support the project.

查看更多
Luminary・发光体
6楼-- · 2019-05-22 17:11

I couldn't find any documentation about JFreeChart, so I forked jcckit to https://bitbucket.org/hughperkins/easyjcckit , and added a simple 'plot(double[] xvalues, double[] yvalues )' method for line graphs.

查看更多
登录 后发表回答