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 - Adding more than one ChartPanel in the same JPanel

I need to add two chartPanels in a same JPanel. I did this for a single chartPanel, and it worked: JPanel content = new JPanel(new BorderLayout()); final ChartPanel chartPanel = new ChartPanel(chart); chartPanel.setPreferredSize(new…
Rikkin
  • 509
  • 1
  • 5
  • 20
1
vote
1 answer

howto find size of portlet

I want to show jFreeChart generated SVG grapics in my JSP portlet. The size of the image should be as wide as the portlet and the height a fixed factor of the width. I solved the problem but I wonder if there is a better way to accomplish the same…
1
vote
2 answers

JfreeChart background image not showing up

I'm creating a chart in a servlet, and it works great. chart = ChartFactory.createPieChart("Smart Chart", ds, true, true, true); PiePlot plot = (PiePlot) chart.getPlot(); ImageIcon icon = new ImageIcon(bgImageStr); …
mikeb
  • 10,578
  • 7
  • 62
  • 120
1
vote
2 answers

Read csv file to draw a pie chart in JfreeChart

I'm trying to read each csv file from a directory and do some calculations, using the ratio from each category to draw a pie chart using JFreeChart. Using PieChartDemo1.java as sample, where I should specify FileReader and pass the variables to…
Happy Jubilee
  • 107
  • 2
  • 13
1
vote
1 answer

Area chart Series

I think my question is a little silly, but I couldn't find the answer in the examples! I create a area chart and I need to change the name of the series, in the legend of the graph here: final CategoryDataset dataset =…
Rikkin
  • 509
  • 1
  • 5
  • 20
1
vote
3 answers

Hide labels on jfreechart/PiePlot3D piechart

I'm trying to get the jfreechart PieChart3D to hide labels. I can't find anything in the documentation. Anyone know how to do this? <% response.setContentType("image/png"); %><%@page import="org.jfree.data.general.*"%><%@page…
timkl
  • 3,299
  • 12
  • 57
  • 71
1
vote
1 answer

How to update a jTable from another neatbeans module

the application I am working on uses Netbeans modules, the problem I am having is that I have a Jtable in one module that I would like to update its contents from another module. The module with the table in it acts as a data panel, where…
Lewis
  • 70
  • 8
1
vote
2 answers

JFreeChart auto resize on zoom

I need to plot a lot of data (150-250 points/seconds * 180secs) on a XYPlot. So if i use the autorange method, its a bit to coarse. If i zoom into the plot, i just see a range of the data (eg. 10.25 to 14.50).. its good, and it works very well, but…
lhlmgr
  • 2,087
  • 1
  • 22
  • 38
1
vote
2 answers

Jfreechart:displaying multiple charts

I am new to java and JFreecharts and I am using Jfreechart to create many charts(barcharts and piecharts). I display the charts as and when it is created. But all the charts which are generated gets stacked upon the other and the last chart is on…
java_learner
  • 182
  • 3
  • 13
1
vote
1 answer

JFreeChart - Mark direction a line moves in XYPlot

I'm making a program that deals with a large collection of 2D data. I'm displaying this data in an XYPlot. Is there some way I can mark which direction the line is moving over time? The data bounces all over the plot, but needs to be in a specific…
Inglonias
  • 468
  • 1
  • 5
  • 18
1
vote
1 answer

How to draw lines, dots and other shapes in jfreechart?

I want to know how to draw lines, dots(or tiny circles), rectangles and trapezoids in jfreechart on a XY Plot. Most of them from certain coordinate to the Range Zero Baseline. I have to represent root-finding methods like…
Janyo
  • 11
  • 1
  • 2
1
vote
0 answers

JFreeChart setRangeZeroBaseline visible

I'm using JFreeChart to draw data points, and some of them include zero point. As I know, by default, JFreeChart does not draw zero points (e.g. (0,0), (1,0), (2,0) do not show up in a graph). I have tried…
Ayden Kim
  • 21
  • 7
1
vote
1 answer

Setting a tick interval on a stackedareachart

I have this chart produced by jfreechart's stackedareachart. The label's on the x axis are the months of the year. I need to be able to display every other label. Something like: Jan Mar Apr Jun Aug Oct Dec I am able to do this when the Domain…
ajon
  • 7,868
  • 11
  • 48
  • 86
1
vote
0 answers

memory in javafx candlestick chart

I have developed two candlestick chart one using jfree and other using javafx 2.2 Both are adding one candle every 100 ms and I ran them(seprately) for around two hours and measure memory usage using jconsole. I get around 400 Mb of used memory for…
learner
  • 1,952
  • 7
  • 33
  • 62
1
vote
1 answer

Let users edit series in JFreeChart XY plots

I'm using JFreeChart to make some graphs in a Java application. I'm trying to figure out how to let the user edit the series paint/stroke. In the Chart Properties window there's a spot for this, but it just says "No editor implemented". Is there a…
Alex Z
  • 1,449
  • 4
  • 20
  • 29