2

Hi I am trying to create simple graph in java every where in the internet, they suggest to use JFreeChart. Can any one guide me how to create simple graph without using JFreeChart.

Thank you

3
  • 2
    Why would you NOT use JFreeChart? Commented Dec 13, 2013 at 8:35
  • 1
    It's huge and it may be overdimensionend for some use cases. (Note: I don't like JFreeChart, but I agree that it has many powerful features to offer. So if you have some highly sophisticated charts to create, then it's probably a good choice. But I don't know why I should use a 1.4 Mb(*) library for displaying some smaller bar/line charts with NO extraordinary requirements). * mvnrepository.com/artifact/jfree/jfreechart/1.0.13 (size taken from here) Commented Dec 13, 2013 at 9:27
  • Some examples are seen here. Commented Dec 14, 2013 at 1:32

4 Answers 4

2

Why don't you use JFreeChart??

Take a look at these stuffs

Standalone

Generate Pie Chart/Bar Graph in PDF using iText & JFreeChart
Graph using Eclipse

Web

JFreeChart : Create Auto-Refreshing Pie Chart in Servlet dynamically
Create a bar chart in JSP page using JFreeChart

In Web application you will get a lots of plugins for creating charts and graphs.
Take a look at this article

12 Great jQuery Graphs and Charts Plugin

Sign up to request clarification or add additional context in comments.

Comments

1

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/

Check out there quick start page: https://google-developers.appspot.com/chart/interactive/docs/quick_start

You can output a beautiful graph in minutes.

Comments

1

Personally I prefer XChart. It's both powerful and simple to use. Just have a look at the main page:

http://xeiam.com/xchart.jsp

The license is Apache 2.0 and you can find the source code on github:

https://github.com/timmolter/XChart

Comments

0

The standard java demos folder contains a nice graph demo. See your JDK installation:

.../jdk1.x/demo/applets/SimpleGraph/

Load it via .../demo/applets.html

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.