What Is the Best Open-Source Java Charting Library? (Other Than Jfreechart)

What is the best open-source java charting library? (other than jfreechart)

There is charts4j which is a charts and graphs API. It enables developers to programmatically create the charts available in the Google Chart API through a straightforward and intuitive Java API.

Disclaimer: I wrote charts4j. We will be doing another major release in the next few weeks.

Simplest Java chart library?

JFreeChart is one of the best open source charting packages for java.

Charts in web application Java

Try the Google Chart Tools; the simple web service interface is easily usable via JavaScript for live graphics and the Google Chart API is great for Java (and other languages) for static images.

Java Charting libraries

JFreeChart is an excellent open source charting library for java.

The samples demo (Java Web Start version or in the distribution) contains a section under Miscellaneous called Dynamic Charts (in addition to lots of others). The source code for the demos is available via the official documentation (the purchase of which supports the project).

Can JavaFX 2.0 serve as a scientific charting package?

Java FX 2.0 and JFreeChart are not really comparable. JFreeChart is a charting library for Swing, which is a GUI environment in Java. Whereas Java FX 2.0 is an alternative to Swing. Java FX 2.0 happens to provide a few chart objects as part of its standard library but they are definitely not as flexible / customisable as those available in JFreeChart. Of course, Java FX 2.0 being in Java, nothing prevents you from coding the very specific chart you need by extending the available components.

Java FX 2.0

  • Pros: More modern look and feel than Swing (personal subjective opinion), possibly going to be the new GUI standard in Java in a few years
  • Cons: you will have to spend more time enhancing the existing charting components, less widely used = less support + smaller community if you get stuck

Swing:

  • Pros: plenty of charting libraries available (JFreeChart is a very comprehensive one but there are alternatives as you mention). Active and wide community.
  • Cons: I personally don't like the look and feel as much - could become obsolete at some stage, but clearly not tomorrow.

Pie, Bar, Line charts in java?

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)

Real-time Java graph / chart library?

What the FAQ actually says is that JFreeChart doesn't support hard real-time charting, meaning that the chart isn't updated when new data arrives or at deterministic interval after it. However I have found that JFreeChart can be used for the kind of applications you are describing. You can achieve 1 update per second, which is fine. I don't think a human eye can follow something quicker than this.

If you want something more than this, I doubt you will find anything in Java (or even in another language). Operating Systems that we use aren't designed to be real time. You can't have a guaranty that they will respond in a minimum interval after an event. A tight integration with the hardware driver will be needed to show more than 1-10 frames per second.

However, if you design your application correctly, the OS will do respond quickly and your application can easily display a "real-time" graph (meaning a graph that updates once a second). Just don't use your application to shut down a valve in an emergency situation!

Searching for Java library to build an app that interacts with data

Check What is the best open-source java charting library? and Libraries for pretty charts in SWT? for more info.

I did used JFreeChart with SWT (2 years ago). The code is quite horrible (you have to write tons of code), but it works and is directly renderable with SWT components (no need of SWT_AWT bridge).

EDIT

When I thought about it again, I realized, that you can use the JavaScript library through Browser widget. It's quite heavyweight solution, but it might work..



Related Topics



Leave a reply



Submit