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 align BarChart width across subplots

I'm building multiple stacked bar charts (subplots) that are combined through a CombinedRangeCategoryPlot. As the subplots datasets do not have the same number of items and since JFreeChart decides to allocate the same space for each subplot, I have…
Tom
  • 1,375
  • 3
  • 24
  • 45
1
vote
0 answers

different Tick Unit (interval) in Number Axis based on density of data points in jFreeChart

I want to show the result of my simulation with XYLineChart of JfreeChart, the range of Number Axis is between time =0 to time =3000, but the density of data points are different in different time intervals, for example there is just few data…
zhuan
  • 63
  • 1
  • 10
1
vote
1 answer

How to remove white border around a chart?

This is slightly modified code of org.jfree.chart.demo.BarChartDemo1: public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { …
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
1
vote
2 answers

Adding serial communication data to a real-time Java graph

Right now I have a Java file that can read serial data, and it just prints it in the console. In another file, I have a JFreeChart graph that generates random data into a real-time graph. These files are both in the same project. How could I add the…
Patrick
  • 113
  • 1
  • 9
  • 18
1
vote
1 answer

How to get the value of the x-axis when the mouse is clicked in time seires chart

I was using dynamic time chart. Timeseries chart when the mouse is clicked I want to get the time value. But the method I used was able to get the y-axis value. How can I get the x-axis time? Please help…
1
vote
1 answer

How to combine multiple charts created using JFreeChart API?

My requirement is need to display 2 barchart and 3 trendchart in single page. For that, i have used JFreeChart API and sending the image in bytearray format through response. Its working fine for single image. How do i merge all 5 charts and send…
Raja D
1
vote
1 answer

Adding legend to jFreechart

I have come up with my final hysteresis plot, which looks like this: My earlier post: Plotting a hysteresis loop with jFreeChart I have used 4 XYSeries for my first hysteresis loop and another four for the second hysteresis loop. If i turn on the…
Gaurav K
  • 2,864
  • 9
  • 39
  • 68
1
vote
1 answer

Gantt Chart in jfreeChart?

I have a .csv file containing TaskId and TaskStartTimerValue. I want to make a Gantt Graph displaying TaskId on the x axis and TaskStartTimervalue at the y axis. I am using a demo from this link this link at sanjaal.com. The demo uses a…
user1871762
  • 359
  • 1
  • 2
  • 10
1
vote
1 answer

Plotting a hysteresis loop with jFreeChart

I need to draw hysteresis loops and then calculate the area closed within the loop. I am using jFreeChart. consider the following data: hyst[0]=0; hyst[1]=0; hyst[2]=0.0098; hyst[3]=0.0196; hyst[4]=0.0489; …
Gaurav K
  • 2,864
  • 9
  • 39
  • 68
1
vote
1 answer

Draws a block, rather than a point in jfreechart

i m using jfreechart to draw a graph about a logger of operations in a computer. ex: 1:2012/09/39/28 06:55:37 8 S 0x1c0c762 Terminal --geometry=134x35 --display :0.0 --role=Terminal-0x10591b0-16869-1343137248 --show-menubar…
WUJ
  • 1,663
  • 3
  • 15
  • 21
1
vote
3 answers

Customizer Class in iReport for Bar Chart

I am facing problems with Bar chart of Ireport. In Pie Charts, for legend and legend labels I use 0,1,2 and display values along with their percentages. I want to do a similar thing for Bar Charts. I want to display the value for each bar along its…
Rashmi Nagaraja
  • 801
  • 11
  • 20
1
vote
1 answer

Y tags in XYSeriesCollection (JFreeChart)

I have an XY chart where I want to represent X values along some dates. The creation of the dataset is simple: XYSeries serie = new XYSeries("valor"); for(int i=0;i
Juan
  • 1,754
  • 1
  • 14
  • 22
1
vote
1 answer

How to plot values produced by an array using JFreeChart

I have a function which produces a load of doubles up to the size of the array. What I am curious to know is how I can then plot these values using a XYLineChart? I am unsure of how to put these doubles into the correct format so that they can then…
user2041029
  • 21
  • 1
  • 6
1
vote
0 answers

How can I control how Jasper Reports combines data for a single value in a time series?

I have a time series and I'd like to: a) Know how Jasper Reports (or JFreeChart) will combine my data for a single point on the chart by default and b) Be able to change how that combination is performed For instance, let's say that I have samples…
Christopher Schultz
  • 20,221
  • 9
  • 60
  • 77
1
vote
1 answer

How do I eliminate a set of duplicate X values when plotting more than one function?

I am new to jfreechart. I have code like http://www.java2s.com/Code/Java/Chart/JFreeChartXYLogAxesDemo.htm that plots 4 functions in a chart. However, the x values for each xyseries are all the same. This seems redundant. Is there a way to eliminate…
Ray Tayek
  • 9,841
  • 8
  • 50
  • 90
1 2 3
99
100