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

jFreeChart chart remove y labels from NumberAxis

How can I remove the y labels from a JFreeChart chart? I use a NumberAxis for my y axis. I can't seem to find a simple method for this anywhere. I would like something similar to the remove legend syntax: // Remove the legend …
Jean-Paul
  • 19,910
  • 9
  • 62
  • 88
1
vote
3 answers

From jFreeChart Millisecond to java.util.Date

Regarding jFreeChart's Millisecond, How can I get a java.util.Date object from a Millisecond instance? From the docs, it only seems possible to subtract the milliseconds within Millisecond. Since a Millisecond object is constructed like so: …
Jean-Paul
  • 19,910
  • 9
  • 62
  • 88
1
vote
0 answers

JFreeChart Show all DomainAxis Elements in Graph

How to show all the elements of x axis I added to dataset? for example my x axis dataset values are arraylist = {-40,-30,-20,-10,0,10,20,30,40} I would like to show all these values exactly in my x-axis(Domain Axis) XYPlot xyPlot =…
Vijay Vennapusa
  • 169
  • 3
  • 15
1
vote
1 answer

Display dynamically generated image inside JSF page

I have a JSF page which needs to display a dynamically generated image(using jfreeChart) located in the web folder. When the page is loaded it will display the previously generated image instead of the new image.The Image tag looks like as…
Tharaka
  • 41
  • 4
1
vote
1 answer

JFreeChart format Y-axis to show values in Power

How to format y-axis to show values as 5*10^5, 1*10^6, 2*10^6... instead of 500,000,1,000,000, 2,000,000... and which are divisible by 5 or 10?
Vijay Vennapusa
  • 169
  • 3
  • 15
1
vote
1 answer

Showing both values and series names in JFreeChart

I have a stacked bar chart like in the image above. What i need is to show both series names and values on each bar. How can i do that? I can show series with this code: renderer.setBaseItemLabelGenerator( new…
AloneInTheDark
  • 938
  • 4
  • 15
  • 36
1
vote
1 answer

Jfreechart piechart generation

I am trying to generate a piechart from an existing application but am getting errors. The latest error is: createPieChart(java.lang.String,org.jfree.data.general.PieDataset,org.jfree.chart.labels.PieSectionLabelGenerator) in…
stretchr
  • 615
  • 2
  • 9
  • 24
1
vote
1 answer

How return multiple lines in JFreechart dataset using MySQL and Java

I created a graph with a single line, with connection to the database as I show below. I just used a dataset that returns the data of the query. I need to display more lines to create this thought in various datasets but don't know how can I…
strange_098
  • 1,261
  • 6
  • 24
  • 44
1
vote
1 answer

How can I make a JFreeChart Bar Chart's plot expand to show vertical labels above the bars?

I want to create a Bar Chart, using JFreeChart, with vertical labels above the bars. I can do this using an ItemLabelPositioner as follows: BarRenderer renderer = (BarRenderer)plot.getRenderer(); ItemLabelPosition pOut = new…
Mick Francis
  • 139
  • 6
1
vote
1 answer

Java JFreeChart - how to add the button to the left of the name of graphics?

How to add the button to the left of the name of graphics in that area marked by red color? chartPanel.setDomainZoomable(false); chartPanel.setRangeZoomable(false); chartPanel.setPopupMenu(null); frame = new JFrame(Title); …
Denis
  • 503
  • 8
  • 32
1
vote
2 answers

JFreeChart gap between legend labels

I've been using JFreeChart in order to plot some series but I have a doubt related to the space between the labels in the legend. Does anyone know how to set a space between legends? For example, right now: and this is how I want it to look…
Camilo
  • 199
  • 2
  • 13
1
vote
1 answer

How to rotate pie chart with mouse wheel in JFreeChart?

I'm searching about a pie chart that is rotated by mouse wheel but couldn't find a good example.
AloneInTheDark
  • 938
  • 4
  • 15
  • 36
1
vote
2 answers

JFreeChart Java JAR not running on a different machine

I have created an application using the JFreeChart library for use on another machine. Previously I have developed applications with JFreeChart (using the same libraries) which has worked fine on other machines. The only difference is this machine…
cardycakes
  • 431
  • 1
  • 4
  • 12
1
vote
1 answer

CrossHair Tracing In JFreeChart

I was able to implement real-time mouse tracing as follow : The source code is as follow…
Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875
1
vote
1 answer

Java Bar chart clickable bars

Is there is a way to click on a JFreeChart bar to lunch an event ? if there's any other chart libraries which support clickable bars please guide me to it, what i really need is after creating the chart the user is able to click on one of the bars…
Akhadra
  • 419
  • 3
  • 10