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
4
votes
1 answer

How to remove x-axis line in jfreechart

Im using jfree chart for my application. I need the chart looks like this Expected but i've formatted the charts many way's but i have got like this only. Actual Please help me to get the expected chart. I need a chart without the x-axis line. My…
Hariprasath
  • 828
  • 4
  • 15
  • 41
4
votes
3 answers

How can I display a JFreeChart in web browser with Stripes Framework

This is the situation: My 'metrics.jsp' page submits a couple variables that are needed to create the chart. The 'ProjectActionBean.java' calls down to a few other java classes that create the JFreeChart. I can display the chart in a pop-up but I…
robbie
  • 658
  • 3
  • 11
  • 26
4
votes
1 answer

NoClassDefFound Error in this Java Code

I am facing an error in this code. import java.awt.Color; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartFrame; import org.jfree.chart.JFreeChart; import org.jfree.chart.plot.CategoryPlot; import…
MUHAMMAD BILAL
  • 41
  • 1
  • 1
  • 3
4
votes
1 answer

How to determine the amount of data displayed on chartpanel?

How to determine the amount of data displayed (candles) of the dataset (DefaultOHLCDataset) to a visible chart does not exceed a certain number. I have an extensive dataset, which displays some data. To date, the amount of data displayed was limited…
Bernard Burn
  • 661
  • 5
  • 20
4
votes
2 answers

Change the color of jfreechart piechart

I want to change the color of the "pieces" of pie in my jfreechart PieChart3D, this is the code that renders the piechart: <% response.setContentType("image/png"); %><%@page import="org.jfree.data.general.*"%><%@page…
timkl
  • 3,299
  • 12
  • 57
  • 71
4
votes
1 answer

JFreechart candlestick chart weird behaviour on drag

This is a follow up question from this question. What happens is the following: When I launch the graph and I drag the graph around, something weird happens: at a certain interval, it seems every 7 periods, the candlesticks get smaller and smaller…
Jean-Paul
  • 19,910
  • 9
  • 62
  • 88
4
votes
1 answer

Effects on bars generated from Jfreechart

I am new to JFreechart and I have generated a barchart. The bars have a shining line in it. I want to know if it is possible to get rid of this line in the bars. I want the bars to have a matte effect. I have attached the image of the barchart which…
java_learner
  • 182
  • 3
  • 13
4
votes
1 answer

JFreeChart render StackedAreaChart with splines

I am looking for a way to render a StackedAreaChart with splines I guess I am after some StackedSplineAreaChart XYSplineRenderer is doing a nice job but does not cover areas Is there a trick to render AreaCharts with splines?
MonoThreaded
  • 11,429
  • 12
  • 71
  • 102
4
votes
1 answer

Jfreechart timeseries graph

I am having problems creating a timeseries-chart using the JFreechart-Api. In the timeseries Graph i want the x-Axis to display DAYS-MONTH. It does so, however i cannot set the days properly when creating the timeseries-data, due to a…
kiltek
  • 3,183
  • 6
  • 47
  • 70
4
votes
2 answers

JFreeChart not appearing on JPanel - may be something to do with my code's logic

This question relates to a similar question I posted on here a few days ago... Here is the interface which will show where I am wanting the chart to appear: I am wanting to display the chart on the large JPanel on the right hand side. What the…
Rob
  • 1,272
  • 6
  • 24
  • 35
4
votes
1 answer

How to change marker size in XYPlot of jfreechart

In the selected answer to this question I would like to change the marker size, how can i do that? Setting Range for X,Y Axis-JfreeChart
C graphics
  • 7,308
  • 19
  • 83
  • 134
4
votes
2 answers

AFreeChart chart not filling parent

I tried to plot some graphs with AFreeChart and It's working pretty well. But chart not filling all available space at the display. How can I achieve this?
user1685095
  • 5,787
  • 9
  • 51
  • 100
4
votes
1 answer

setting chart size to fixed value in JFreeChart

In JFreeChart graphics, if you resize the application window, the graphics are repainted according to the application window size. Is it possible to set the chart size to fixed values?
penguru
  • 4,342
  • 11
  • 46
  • 56
4
votes
1 answer

Can we draw a line chart over GroupedStackedBarChart

I am trying to create a GroupedStackBar chart which shows revenue for each client for past three months for each product and add line chart(s) depicting the meetings done with the client over each period. I am using JasperReports to create a PDF…
saiyyer
  • 43
  • 4
4
votes
3 answers

JPanel added but not displayed "in time"

I have a JFrame that displays JPanels depending on the MenuItem you click. It works, but now I need to call a method once a JPanel is added to the frame and it is being shown (because I'm using JFreeChart inside that panel and I have to call…
Salvatorelab
  • 11,614
  • 6
  • 53
  • 80