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

How to edit in JFreeChart the Number of minorTicks on a PeriodAxis

I have a JFreeChart standard TimelineGraph. There is an Y Axis with numbers from 0 to 600, and a X Axis to show the period of time you wish to see. I have implemented the following code: protected void setupDomainAxis() { final long…
1
vote
1 answer

JFreeChart separate renderer for each series

Is it possible in JFreeChart to define separate renderer for each series? I see it is possible for datasets (renderer per dataset), but I wouldn't like to create a separate dataset for each series, should I?
Łukasz Rzeszotarski
  • 5,791
  • 6
  • 37
  • 68
1
vote
1 answer

How to show only selected category's values on JFreeChart?

Is it possible to show only the selected category's values on JFreeChart? chart http://img200.imageshack.us/img200/8329/2npa.png For example, I have three categories on above picture and I want to give user to a selection option to see only selected…
cgrgcn
  • 361
  • 2
  • 6
  • 24
1
vote
0 answers

How to customize bar chart labels in iReport

I have a bar chart as follows I want to append some text to the labels so they would look like 2010 B 2011 C 2012 D How can i achieve this? I know that we can write BarChartCustomizer but not sure how to get the labels for a particular…
Coder
  • 3,090
  • 8
  • 49
  • 85
1
vote
0 answers

CCC pieChart visualization

I'm moving from JfreeChart to CCC. I'm able to show a CCC chart using a MDX query. I have a problem: what I have to change in my MDX query which allowed to show a pie chart in JfreeChart component, but not in CCC one? The query is the…
Nko
  • 341
  • 1
  • 7
  • 18
1
vote
2 answers

Change the starting value of value axis in Bar chart with Jfreechart

I have the following values to be shown in a BAR chart in my Java web application. 9.46373791E8 9.45942547E8 9.45559945E8 9.45187023E8 9.44856693E8 9.44417826E8 9.44007878E8 As u can see the values are really close and have minor differences. When i…
DJR
  • 454
  • 2
  • 8
  • 29
1
vote
0 answers

ChartUtilities.apply CurrentTheme make NoSuchMethodError

I'm using strut2 with JFReeChart 1.0.13 And some reason a i can't use ChartUtilities.apply CurrentTheme. The libraray is imported. I want to try one of the example. but it makes…
Joseph
  • 145
  • 4
  • 16
1
vote
1 answer

How can i get xy-data set Android aFreeChart

i use AFreeChart chart(XYPlot) lib for my project. However i want to get xy-dataset values when i touch curve points, do you have any idea is there any onClicklistener for graph points?
Osman Yılmaz
  • 123
  • 1
  • 9
1
vote
1 answer

Make bars in JFreeChart semi-transparent?

I used JFreeChart to create a XYBarChart, and I want to know if it is possible to make the green bars semi-transparent if there is another set of bars hiding behind it. In other words, perhaps changing the opacity of only the green bars that are on…
BJ Dela Cruz
  • 5,194
  • 13
  • 51
  • 84
1
vote
1 answer

To convert the double into date format using a class in JFreeChart

I would like to know, if it is possible to set the both parameter as date, which in this example it take the first parameter as comparable and the second as double. But i want the double to be displayed as date. Is there a class that can be used. If…
Avi Z Nash
  • 13
  • 6
1
vote
1 answer

JFreeChart using shifting one series by a given offset value

Let's assume that I have one instance of the org.jfree.data.xy.DefaultXYDataset and that I am adding two series to it in this way: dataset.addSeries(name, values); dataset.addSeries(name2, values) How can I move the first or the second series by…
Łukasz Rzeszotarski
  • 5,791
  • 6
  • 37
  • 68
1
vote
1 answer

Unable to Cast the List Values into Comparable Value for JFreeChart

I have two classes viz. ExistInsert.java and TryExist.java . The complete code for ExistInsert is given below: package tryexist; import java.util.ArrayList; import java.util.List; import org.exist.xmldb.XQueryService; import…
Mahadeva
  • 1,584
  • 4
  • 23
  • 56
1
vote
1 answer

Get coordinates of my series in jFreechart

I have: XYSeries series = new XYSeries("My Function"); After some operation i have do some add as this: series.add(x,y); X and Y are int. So, i have also an arrayList seriesCoeff; After this declaration i would execute this operation: double[][]…
user2520969
  • 1,389
  • 6
  • 20
  • 30
1
vote
1 answer

XYTextAnnotation in DynamicTimeSeriesCollection

I'm trying to implement XYTextAnnotation in DynamicTimeSeriesCollection. I have no idea how to find X value of series in DynamicTimeSeriesCollection. My code so far: DynamicTimeSeriesCollection dataset = new DynamicTimeSeriesCollection(1, 60, new…
max
  • 1,579
  • 1
  • 19
  • 34
1
vote
2 answers

Could not initialize class org.jfree.chart.JFreeChart

EDIT: Hi there i am using JBoss 7.1 Runtime Server and i have an Problem on my MAC when i build my Project and run it on localhost i get always an ERROR from the JFreeChart Library that it could not initialize. I'm using Maven to import all my…
Zeropointer
  • 510
  • 2
  • 7
  • 24