简体   繁体   English

如何在不使用JFreeChart的情况下创建图形?

[英]How to create graph without using JFreeChart?

Hi I am trying to create simple graph in java every where in the internet, they suggest to use JFreeChart. 嗨,我正在尝试在Java中的Internet各个位置创建简单图形,他们建议使用JFreeChart。 Can any one guide me how to create simple graph without using JFreeChart. 谁能指导我如何在不使用JFreeChart的情况下创建简单图形。

Thank you 谢谢

Why don't you use JFreeChart?? 为什么不使用JFreeChart?

Take a look at these stuffs 看看这些东西

Standalone 独立

Generate Pie Chart/Bar Graph in PDF using iText & JFreeChart 使用iText和JFreeChart在PDF中生成饼图/条形图
Graph using Eclipse 使用Eclipse的图形

Web 卷筒纸

JFreeChart : Create Auto-Refreshing Pie Chart in Servlet dynamically JFreeChart:在Servlet中动态创建自动刷新饼图
Create a bar chart in JSP page using JFreeChart 使用JFreeChart在JSP页面中创建条形图

In Web application you will get a lots of plugins for creating charts and graphs. 在Web应用程序中,您将获得许多用于创建图表和图形的插件。
Take a look at this article 看看这篇文章

12 Great jQuery Graphs and Charts Plugin 12个很棒的jQuery图形和图表插件

Depends whether you want to generate the graph on the front end or back end. 取决于要在前端还是后端生成图形。

Personally i prefer front end tools such as: Google graph api - https://developers.google.com/chart/ 我个人更喜欢前端工具,例如:Google graph api- https : //developers.google.com/chart/

Check out there quick start page: https://google-developers.appspot.com/chart/interactive/docs/quick_start 查看那里的快速入门页面: https : //google-developers.appspot.com/chart/interactive/docs/quick_start

You can output a beautiful graph in minutes. 您可以在几分钟内输出漂亮的图形。

Personally I prefer XChart. 我个人更喜欢XChart。 It's both powerful and simple to use. 它既强大又易于使用。 Just have a look at the main page: 请看一下主页:

http://xeiam.com/xchart.jsp http://xeiam.com/xchart.jsp

The license is Apache 2.0 and you can find the source code on github: 许可证是Apache 2.0,您可以在github上找到源代码:

https://github.com/timmolter/XChart https://github.com/timmolter/XChart

The standard java demos folder contains a nice graph demo. 标准的java demos文件夹包含一个不错的图形演示。 See your JDK installation: 查看您的JDK安装:

.../jdk1.x/demo/applets/SimpleGraph/ ... / jdk1.x /演示/小程序/ SimpleGraph所使用/

Load it via .../demo/applets.html 通过... / demo / applets.html加载

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM