Questions tagged [jfreechart]

JFreeChart is a free Java chart library with many available chart types and support for numerous output types. The latest version is 1.5.0 released on 2017-11-05. The license is LGPLv2 (or later).

JFreeChart is a free Java chart library with many available chart types and support for numerous output types. The project includes a gallery of sample charts and detailed examples of several basic chart types; click on the relevant link to see the corresponding source. In addition, older examples may be found here, and a list of frequently asked questions is available; addenda appear in the maintainer's support forum and discussions area.

Its source code is on GitHub. Current and previous versions of JFreeChart can be obtained from Maven.org. Releases are seen here. The online javadoc API are listed here. The creator also provides a Developer Guide document which can be purchased here.

Frequently asked questions are present here.

Requirements

JFreeChart requires the Java platform. Note that JFreeChart is a class library for use by developers, not an end user application.

Related Links:

2745 questions
6
votes
1 answer

Changing shape of single point in JFreeChart XYPLot

I am using JFreeChart XYPLot for plotting a XYData set with different labels . I have created different XYSeries objects for different labels so that I can have different colors for different labels . Now I need to require the change the shapes of…
Abhilash
  • 377
  • 1
  • 3
  • 13
6
votes
2 answers

Multiple graphs in multiple figures using jFreeChart

I am trying to use jFreechart to generate two figures each of which with 12 graphs (being referred as series in jFreeChart ). However some of the graphs get simply skipped! I know I have synchronization issue here and tried to used the method the…
C graphics
  • 7,308
  • 19
  • 83
  • 134
6
votes
1 answer

Closing up blank space in JFreeChart bar chart

I am using JFreeChart and would like to display a bar chart of player's scores, with the score on the y-axis and the player's games grouped on the x-axis. e.g. String[] {Player name, score, game number} Player 1, 10 , 1 Player 1, 12 , 2 Player 1, 15…
ms813
  • 241
  • 3
  • 17
6
votes
1 answer

JFreeChart : how do you put multiple charts into a composite chart

In JFreeChart is there a notion of a composite Chart. I need to layout several charts in a grid like arrangement. Each chart in the grid needs to have its own separate title. I would like to be able to save this composite chart into a png file I…
user1172468
  • 5,306
  • 6
  • 35
  • 62
6
votes
1 answer

Eclipse RCP with JFreeChart

I'm trying yo use JFreeChart in RCP application with a simple view. I added JfreeChart jar file as a referenced library to project. The view could not be created because of the error : Could not create the view: Plug-in "ViewJFreeChart" was unable…
penguru
  • 4,342
  • 11
  • 46
  • 56
6
votes
2 answers

Charts,Server Side or Client Side?

Client Side Charts or Server Side Charts ? (I had seen some questions based on this topic but none gives a conclusion.) I am currently evaluating Client Side charts(javascript charts). I have came across many articles saying client side charting…
Nagesh Salunke
  • 1,278
  • 3
  • 14
  • 37
6
votes
1 answer

JFreeCharts axis : tick labels alignment

I'm using jFreeChart 1.0.14. I have graph with a horizontal DateAxis. And I'm trying to center the tick labels so that they would be within two subsequent ticks. JFreeChart aligns tick labels in common case this…
sporak
  • 496
  • 5
  • 10
6
votes
1 answer

Making dynamic line chart using jfree chart in java

how can i create dynamic line chart using jFree chart in java which is show data of 2 hours before and also provide a blank space where data show for 2 hours later from current time.For example suppose current time is 4pm ,so the chart display data…
Coder Suman
  • 63
  • 1
  • 2
  • 4
5
votes
1 answer

How to display JFreeChart in Java Swing GUI?

I want to create a graph using JFreeChart and display it in a java swing GUI. At the moment I have the following code to display it in a separate frame, please can someone help me out with the code I need in order to display it my GUI? JFreeChart…
user843337
5
votes
1 answer

How do I get Lein to work with JFreeChart and Dejcartes?

I'm trying to understand how to use lein with clojure and get it to download the correct .jar files on Win7 x64. As a specific example, I'm trying to use JFreeChart and Dejcartes. My questions are generic and not specific to JfreeChart. I…
Sonicsmooth
  • 2,673
  • 2
  • 22
  • 35
5
votes
3 answers

JFreechart(Java) - How to draw lines that is partially dashed lines and partially solid lines?

I'm going to plot a line chart that will change from solid line to dashed line to to indicate real data and forecasting data. I'm not sure if i need to extend some of the classes like XYLineAndShapeRenderer or something else, or maybe there is some…
n0obiscuitz
  • 573
  • 2
  • 10
  • 22
5
votes
1 answer

How to do Mouse Tracing in Jfreechart?

Can anyone tell me how to implement Mouse Tracing on Graph in jfreechart?
sushant kumar
  • 105
  • 2
  • 9
5
votes
2 answers

How to display values within pie chart sector

I am using JFreeChart to create pie charts. Values are displayed outside pie chart sectors as labels. I want to display the values within the pie sectors. How can I achieve this. Please can any one help me?
Vijayalakshmi
  • 189
  • 1
  • 3
  • 11
5
votes
1 answer

modify dataset of an already built chart with Java and JFreeChart

Let's say I've generated a chart with the following code: private ChartPanel createChart(){ XYSeries series1 = new XYSeries("First"); XYSeries series2 = new XYSeries("Second"); XYSeries series3 = new XYSeries("Third"); …
Heisenbug
  • 38,762
  • 28
  • 132
  • 190
5
votes
4 answers

JFreeChart Bar Graph Labels

I have made it possible for value labels to appear on top of the bar in JFreeChart. However, it would look better if the labels are inside the bars. How do I make this work? The image below shows what I wanted the graph to look like.
codix
  • 275
  • 1
  • 6
  • 15