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
4 answers

How to omit fraction in seconds at JFreeChart?

Friends, Atlast i just generate JFreeChart for the collected value from the database. But on that, i just use Second sec = new Second(); Series.add(sec.previous(), ExistingValue); Series.add(sec, Value); Dataset = new…
A.Mohamed Bilal
  • 115
  • 1
  • 13
1
vote
1 answer

JFree TimeSeries Chart Spanning Nanoseconds

I have to plot TimeSeries chart where the data is coming in nanoseconds. But, In my current implementation our date axis range is in Milliseconds. So how can I change the Date Axis range from milliseconds to nanoseconds. Thanks. :)
Ankita
  • 2,798
  • 4
  • 18
  • 25
1
vote
1 answer

jfreechart xylinechart sorting times isn't updated

I'm making a simple sorting benchmark in Java Swing and I want it to display a graph that changes with time. But the graph is not updating when the algorithm runs. I'm really confused. Can someone please explain what I'm doing wrong? The array is…
user46000
  • 77
  • 6
1
vote
1 answer

Create a taskoverview with JFreechart

I want to show whithin my Java application wheather a person is free or blocked on a particular date. I made an example of my intention in Power Point: example chart My first intuition was to use JFreeChart. Therefore I created some tasks and put…
menace_one
  • 13
  • 2
1
vote
1 answer

Custom JFreeChart title font is far too small

I am trying to set a custom Font for the title in JFreeChart with the code: InputStream is = new FileInputStream("test.ttf"); java.awt.Font customFont = java.awt.Font.createFont(java.awt.Font.TRUETYPE_FONT, is); …
Grains
  • 950
  • 3
  • 16
  • 35
1
vote
1 answer

Showing total time in seconds on TimeSeries JFreeChart

I am using TimeSeries jfreechart to show network performance.I want to show total time passed in seconds but it showing only seconds from 0 to 59 and then reset seconds to 0 again.I have to show data for last 120 seconds. Here is the code : This…
1
vote
1 answer

Is there a way to update and display x y next to mouse pointer in jfreechart?

I would like to display the (x, y) location of the mouse pointer with respect the coordinate system of the current jfree chart. I would like to do this constantly even if the mouse pointer is not set on any part of the graph. I know I can activate…
C graphics
  • 7,308
  • 19
  • 83
  • 134
1
vote
2 answers

rotate a JPanel to display it upside down when launched?

I have a JFrame with a JPanel in it, the component i have added to the JPanel needs needs to be displayed upside down (its a JFreeChart) is there a simple way to rotate it by 180 degrees? package testchart; import java.awt.Color; import…
user2965258
  • 137
  • 3
  • 12
1
vote
1 answer

Change the series color indicator at the bottom of the chart

I am using jfreechart to draw some charts, I wanted the chart bars to be custom colored so I followed tutorials and sample code mentioned in this and this link. The issue with bar colors have been solved but now I can't change the series color…
zindarod
  • 6,328
  • 3
  • 30
  • 58
1
vote
0 answers

JFreechart Gantt chart combined Time series Chart

I'm working on developing a tool that will have two JFreechart Chart panels - A Gantt chart at the top A Time series chart at the bottom Now, my requirement is : Both these charts should align and have same x-axis When I zoom in on the Gantt…
1
vote
1 answer

How to add JFreeChart in Eclipse Kepler?

I am going to develop a Java application. It will collect the server counter information and shown it in a JFreeChart. I am going to develop this in Eclipse Kepler with the help of Window Builder. So anyone can help me by telling how to connect to…
user3099091
  • 21
  • 1
  • 5
1
vote
1 answer

Return a dynamically generated pie chart from a servlet and display in JSP

Need your help! I found this website > http://www.avajava.com/tutorials/lessons/how-do-i-return-a-dynamically-generated-pie-chart-from-a-servlet.html This website show how to generate a pie chart and display in servlet. I managed to display in…
Purple Owl
  • 137
  • 1
  • 6
  • 19
1
vote
1 answer

How to prevent duplication of bar chart in iReport

I've tried to use chart in iReport for the first time. I've used a bar chart and anytime I preview the chart I see plenty of them, iIthink about 6. I only need a single one is there anything that I didn't do? I have a query like this : SELECT…
black sensei
  • 6,528
  • 22
  • 109
  • 188
1
vote
2 answers

Java JFreeChart - plot isn't updated

Plot of parabola isn't updated, when I calculate new coefficients of parabola. New coefficients of a parabola are calculated when the mouse is зкуыыув and moves. New coefficients on a graphics are displayed, but the plot remains the same. Why…
Denis
  • 503
  • 8
  • 32
1
vote
1 answer

JFreeChart Large Data Can't Read Axis

I am using JFreeChart to plot a line graph. The app reads in sensory data every 100 milliseconds so for a few minutes of capture it's a a lot of data. I don't plot the graph dynamically, it is static. I am using a Category plot since the axis can…
Mark Manickaraj
  • 1,661
  • 5
  • 28
  • 44