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

How to call Jframe into main Jfram

I have working on stock market project. I want to make desktop app which shows stock markets chart and news. I have made so far a main frame (class) which has RSS and the second is applcationframe which shows candle stick chart (2 class). I would…
badral B
  • 13
  • 3
1
vote
3 answers

Dynamic JFreeChart not redrawing on changes

I am making use of the JFreeChart library to plot the progress of a genetic algorithm in real time. I'm using Swing for the UI. I have a panel where I draw all the various parameters for the algorithm, and a ChartPanel object. This object is drawn…
ajc
  • 23
  • 4
1
vote
1 answer

How to handle mouse dragging event in JFreeChart

I want to know whether it is possible to listen to the mouse event of dragging in JFreeCharts. By default it is assign to zooming. I remove this zooming functionality with, chartPanel.setDomainZoomable( false); chartPanel.setRangeZoomable(…
user239387
  • 13
  • 1
  • 3
1
vote
1 answer

jfree Chart draw plot on image

I'm using jfree Chart to draw some points for positioning. The problem is that the diagram is drawn on a grey surface instead on my floor plan. So I tried to use the background image, but this put the image in the background and is not usable as I…
Irgendw Pointer
  • 1,770
  • 3
  • 30
  • 67
1
vote
0 answers

Dates on timeline have disappeared

First read this question I just posted. Regardless from that question, I have another question. In the result from my program: I don't get any dates at the lower horizontal axis like the jstockchart demo has: I also saw that somebody commented on…
Jean-Paul
  • 19,910
  • 9
  • 62
  • 88
1
vote
1 answer

Rendering an "Inter-"CategoryMarker in JFreeChart

I've got a box plot (CategoryPlot) with a customBoxAndWhiskerRenderer`. A series of bins forms the categories. I want to mark the transition from one category to another with a vertical line. For example in the following figure, a line marks the…
0__
  • 66,707
  • 21
  • 171
  • 266
1
vote
1 answer

Java jfreechart clipping issue

I am trying to make a class that makes a dial similar to the one in the jfreechart demos. However I want the frame with the dials to be scrollable if the window becomes smaller than that needed to print the dial. I achieved this using the Scroll…
jonny
  • 11
  • 4
1
vote
1 answer

JFreeChart scatter chart with varying point colours and sizes

I want to plot some data on a scatter plot: x against y where each point in the series has a point size and a color. Is this possible? say for example int[] x = {1,2,3,4,5}; int[] y = {2,4,6,8,10}; int[] pointSize = {10,20,40,15,25};…
Eduardo
  • 6,900
  • 17
  • 77
  • 121
1
vote
1 answer

Jasper multiaxis chart customized scaling

I have a multiaxis chart bar char and line chart. My customizer class has following code snippet. @Override public void customize(final JFreeChart chart, final JRChart jasperChart) { final Plot plot = chart.getPlot(); if (plot…
Coder
  • 3,090
  • 8
  • 49
  • 85
1
vote
2 answers

Create GitHub punch card like plots with JFreeChart

I am looking for suggestions as how to create plots similar to GitHub punch cards with JFreeChart. E.g. I guess it's some variant of a heat map, or two dimensional histogram.
0__
  • 66,707
  • 21
  • 171
  • 266
1
vote
2 answers

How to set tooltip on my JFreeChart?

I am working on a line chart using JFreeChart. I want to set tool tips on my line chart but I am unable to do that on Servlet. So please help me to set tool tips on Servlet? XYSeriesCollection dataset = new XYSeriesCollection(); for (int i = 0; i <…
varun
  • 472
  • 4
  • 8
  • 24
1
vote
1 answer

Avoid item label overlap in time series 1D plots (JFreeChart)

I am trying to find the best strategy to produce a 1D time based plot with labels. It currently looks like this: The problem is there is spans of time where very little happens, and others with high density. What I would like to achieve is to…
0__
  • 66,707
  • 21
  • 171
  • 266
1
vote
2 answers

JFreeChart Merged point

I'm using JFreechart to analyze sample data of some devices. The data i collect is high frequency recorded and when i try to visualize the data the chart seems unreadable cause full of point. One solution i think is to merge the nearest point in…
Matteo Gatto
  • 616
  • 11
  • 28
1
vote
1 answer

Almost identical programs. One works, one doesn't

I have 2 virtually identical programs. The only difference is the name of the class and hence one line of the program which refers to that name (to construct an instance of the class). The first runs fine. The line that's causing the problem…
George Tomlinson
  • 1,871
  • 3
  • 17
  • 32
1
vote
1 answer

What is this: Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError?

I copied a java program (called SwingAccumulator.java) which enables the user to enter integers one by one in a GUI and prints the current sum. I then copied a class written by someone else (called createGraph()) to plot a line graph. I'm trying to…
George Tomlinson
  • 1,871
  • 3
  • 17
  • 32