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
1
vote
1 answer

How do I get started with JFreeChart?

I've never used any third party library before. What should I do after I downloaded jfreechart-1.0.14.tar.gz? I don't know if I'm doing these things right: 1. Put the jcommon-1.0.17.jar and jfreechart-1.0.14.jar at the same directory as my source…
Stanley
  • 59
  • 6
1
vote
1 answer

JFreeChart - Datasets versus Series?

I am creating an XYPlot with initially null dataset, and then add multiple (e.g. 2) XYSeriesCollection instances to it. Like val chart = ChartFactory.createXYLineChart(...) val plot = chart.getXYPlot plot.setDataset(0, dataset0) plot.setDataset(1,…
0__
  • 66,707
  • 21
  • 171
  • 266
1
vote
2 answers

Displaying all XYSeries at once in jFreeChart for improving speed

Suppose that we need to display multiple XYSeries in a single XYSeriesCollection. My problem is that every time I add a XYSeries, the JFreeChart wants to update the chart and that slows down the process of displaying multiple XYSeries. What I want…
C graphics
  • 7,308
  • 19
  • 83
  • 134
1
vote
1 answer

Need to set column label dynamically in JFreeChart

Please see attached screeshot. i want to set label dynamically for X axis. Currently is says Test1,Test2,Test3,Test4..if i want to set a category array dynamically how can i do that? i mean i want to set category like House Expense,Office Rent,…
Monirul Islam
  • 985
  • 1
  • 8
  • 23
1
vote
2 answers

jfree chart bar chart add $ to range value

I implemented a code to represent a bar chart (as of picture). Now my problem is that I want to add $ sign to the values to represent the currencies. So that the values would be: $0 ---- $500,000 ----- $1,000,000 Any idea?
pms
  • 944
  • 12
  • 28
1
vote
1 answer

Select case mess in JFreeChart

I have a Column(cliente_x_hora, a numeric field) i put in a interval and count the number in each interval.I have 3 textfields(number of intervals,value between intervals and initial value). When I select the two first(with 5 intervals and 1000…
DDias
  • 13
  • 3
1
vote
1 answer

Make a Table from a TimeSeriesCollection

I have all of my data stored in a TimeSeriesCollection, and instead of making a graph with the data, I want to have the option of presenting the data in a table. The goal is to make it look something like this: Name 5/1/2013 5/2/2013 …
user906153
  • 1,218
  • 8
  • 30
  • 43
1
vote
1 answer

Margin plot and chart in JFreeChart

Is it possible to make all bartitles located outside the bars in a barchart visible when the max-value is a fixed value? Example of how it looks and how I would like it to look. It should not be any values over 750 (check USA, the last row): Any…
Grains
  • 950
  • 3
  • 16
  • 35
1
vote
1 answer

JFreeChart CombinedXYPlot with Time Series

I was able to plot successfully date against price, with date on the x-axis and price shown in the y-axis. Later I also want to plot volume-date graph in the same chart, so I've used CombinedRangeXYPlot for this purpose. The common data here for…
user1669327
  • 135
  • 3
  • 9
1
vote
1 answer

Display column keys of stacked bar chart vertically in jFreeCharts

I am developing a javaEE application using jfreecharts. I successfully displayed my data using a stackedBarChart but the column keys (Y-axis labels) are not fully displayed because they are too large. how can I display them vertically? thanks for…
The Prince
  • 169
  • 1
  • 6
1
vote
1 answer

JFreeChart category image

Is there any way of adding an image next to the category string, as shown in these attachments? Current: Desired: Edit: Based on kiwiwings' answer, I've easily managed to display my image next to the label string for the XYchart in his demo: …
Buffalo
  • 3,861
  • 8
  • 44
  • 69
1
vote
1 answer

Using values from a for loop in a function outside of it

I need to take values that I find from inside a for loop to use in a function that isn't inside the loop, and I can't figure out how to do this. What I am hoping to accomplish is to extract values from a key in a hashmap to then plot in a JTable…
user2007843
  • 609
  • 1
  • 12
  • 30
1
vote
1 answer

Java tooltip with image in JAR file

I'm using JFreeChart where I customized the chart's tooltip by implementing the XYToolTipGenerator interface. As the generateToolTip() method is supposed to return a String, here is what I did to show images in the tooltip: @Override public String…
Tom
  • 1,375
  • 3
  • 24
  • 45
1
vote
2 answers

java pie chart height is not properly placed

I am using JFreeChart to make a chart in my program. My problem is I cannot set the height properly. I have tried every command I could think of, I have put it in other panels, however, nothing works. I want to be able to put it somewhere in a…
Ted
  • 629
  • 2
  • 8
  • 19
1
vote
2 answers

Graphing Time per trip using JFreeChart

System.out.println("Hello all that use Java && JFreeChart!"); I am writing an application that allows cyclists, such as myself, to keep track of their average speed, distance, and time for a given trip. They are to enter that data, and then a JFrame…
Mike Warren
  • 3,796
  • 5
  • 47
  • 99