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

JFreeChart DialPlot reduce title gap

I have a JFreeChart DialPlot with a title: JFreeChart chart = new JFreeChart("A title", aDialPlot); I would like to reduce the vertical spacing between the dial meter and the title on top of it but I couldn't find anything in the API. Any help or…
Tom
  • 1,375
  • 3
  • 24
  • 45
1
vote
3 answers

Displaying JFreeChart in a web page using Struts2

I am using Struts2. I need to display JFreeChart in a web page. Can any body help me on that? Edit: it is getting displayed in binary format. public String execute() throws Exception { System.out.println("Refresh bar Chart"); …
Kingshuk
  • 11
  • 1
  • 2
1
vote
1 answer

Custom X Axis Label on JFreeChart DTSC

I have a JFreeChart to display speed variation. I have used MilliSecondDTSC and MultipleOfMilliSeconds classes to display 10 samples per second (100ms refresh rate). On X-Axis, it shows current time. I want that X-Axis should start with 00:00:00 and…
Gagan93
  • 1,826
  • 2
  • 25
  • 38
1
vote
2 answers

ItemLabelPosition for multiple XYSeries on a XYLineChart - JFreeChart

I'm trying to figure out how to control the labeling of 2 different XYSeries for a XYLineChart. For example, I have a line series show the real market value of a home and another line series showing the maximum assessed value. However, some of the…
Hibby
  • 11
  • 2
1
vote
1 answer

In need of help with setting up the open source library JFreeChart

I am having trouble with setting up the open source library JFreeChart for creating charts using Java. This is the process I have followed so far in trying to set it up: I downloaded the latest version from their download page…
ssbellows
  • 35
  • 4
1
vote
1 answer

Why is the data in a timeseriescollection chart don't appear correctly?

I'm made ​​a chart timeseriescollection type. I'm fetching the following values ​​to the database. However when creating the graph, the values ​​shown are not entirely accurate. Can someone tell me why this happens? Only shows the date. Hours not…
rpirez
  • 431
  • 2
  • 8
  • 20
1
vote
1 answer

JFreeChart - Axis label positioning

I want the label of one of my axis to be two words, each aligned to the beginning and end of said axis - I've been doing this by inserting spaces in the Axis label, but it's a crappy solution. Is there a way to align label text for a JFreeChart…
Bruno Antunes
  • 2,241
  • 4
  • 21
  • 35
1
vote
0 answers

Use JFreeChart in EJB component (JBoss 7.2)

I currently develop an application in JBoss 7.2 using NetBeans. In one of my EJB components, I need to use the JFreeChart library to produce some charts that I need. So what I did is, first, to add the external jars needed (in this case…
BrainArchitect
  • 558
  • 8
  • 16
1
vote
1 answer

Populate JFreechart TimeSeriesCollection from Mysql DB?

I'm trying to make a chart in my application that returns me the temperature of days during the months. This chart is a JFreechart TimeSeriesCollection, and I am unable to have the graph read correct data from the database. It shows some of the…
rpirez
  • 431
  • 2
  • 8
  • 20
1
vote
0 answers

Error in JFreechart creating NumberAxis with large values

I get below error when creating a chart using JFreechart. The chart appears correctly if the frame size is increased manually or in the code. I have multiple plots in the panel so size is a constraint. JFreechart: 1.0.18 Java 1.8.0_05 on Windows 7…
Amit Singh
  • 125
  • 1
  • 7
1
vote
2 answers

How to add date in the form of DD/MM/YYYY hh:mm:ss to the X-axis of a TimeSeries graph using jfreechart?

I'm trying to make a graph showing the minimum and maximum CPU Utilization along with the time that the peaks occurred by a particular application for 30 days. The dates are easily obtained on the X-Axis, however, when I zoom in, all tooltips…
krisaxena
  • 13
  • 3
1
vote
1 answer

JFreeChart BarChart setUpperMargin to next interval?

I am using JFreeChart to create a BarChart. My question: is there a way to set the uppermargin of the graph to stop at the next interval? As an example, say a Bar Graph is made with range intervals of 5. Say the tallest bar ends at 30. Is there a…
user3794422
  • 311
  • 1
  • 5
  • 17
1
vote
2 answers

how to clear data in jtable with a jbutton

I have a table that represented a lot data. This is the code to created that table DefaultTableModel model = (DefaultTableModel) Main_Menu.jTable3.getModel(); //Main menu is my form List theListRCS = new…
user2971238
  • 95
  • 1
  • 2
  • 9
1
vote
3 answers

Setting series visiblity to False also hides it from the legend

I am using JFreeChart. When i click on a Legend item i have put a listener. In the listener i make the series that was clicked invisble. But as a side effect the series also vanishes from the Legend. I do not want the series to vanish from the…
codeNinja
  • 1,442
  • 3
  • 25
  • 61
1
vote
1 answer

JFreeChart chart is lagging

This program is supposed to graph and animate a sine wave by using a thread to "move over" the points in the XYSeries that draws the wave. After a few seconds, the chart starts to flash and zooms in and out randomly. I don't know if this is a…
JayKay
  • 183
  • 1
  • 3
  • 14