Chart Display - Free Java Library

Is there a public library for Java (free) that can be used to display graphs (I'm talking about discrete graphs, not histograms, pie charts, etc.)?

+6
java graph open-source
source share
7 answers

There is an open source version of JGraph .

+8
source share
+4
source share

JFreeChart is a good one.

And if laying out graphs is what you need, I would recommend AT & T graphviz as an alternative. Give him the data and you will find a schedule for you.

+3
source share

If you use the Google Chart API, select Charts4J .

I use it and have no problems.

+1
source share

JFreeChart . The code is free. You have to pay for the documents of the authors, but there are many examples, and it is quite easy to learn how to use them.

+1
source share

Sorry, I misunderstood the question. The thing you are looking for is called JUNG , the universal Java network / graphics library. It can store, display and calculate various indicators on sparse or dense graphs. The official website has great designs.

Quote from the site above:

β€œThe JUNG architecture is designed to support a variety of representations of entities and their relationships, such as directional and undirected graphs, multimodal graphs, graphs with parallel edges and hypergraphs. It provides a mechanism for annotating graphs, objects, and relationships with metadata, which makes it easy to create analytical tools for complex "datasets that can examine relationships between objects, as well as metadata associated with each object and relationship."

0
source share

There is a Graphviz library for Java at http://www2.research.att.com/~john/Grappa/ . I used Graphviz for a project in the past to draw graphs, and I found it pretty easy to use. If you're just looking for a server-side solution, then you can just use the standard Graphviz distribution and send commands with the dot syntax that it uses.

0
source share

All Articles