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

JFreeChart: Increase Size of Data Point

This question was already asked here, but unfortunately the pointers provided in the answers are not working (the JFreeChart Forum is down). My question is: Using the JFreeChart library, how can I increase the size of a data point in a time series…
spookymodem
  • 531
  • 1
  • 9
  • 15
4
votes
2 answers

Display label on top of Bar chart in JFree

I want to display the labels on top of the bar in a multi series chart using JFree. Please tell me how to accomplish this?
Developer404
  • 5,716
  • 16
  • 64
  • 102
4
votes
1 answer

JFreechart series tool tip above shape annotation

I have an XYPlot on which are series and a couple of dynamically added shape annotations with no fill (hence each of the series points are visible). Is it possible to display the series tool tips(that show the coordinate of the series point over…
jpo
  • 3,959
  • 20
  • 59
  • 102
4
votes
1 answer

How would I create a JFreeChart scatterplot best fit line

I have an arraylist of points I want to include in a JFreeChart scatterplot. That works fine, but I now want a best fit line on it. After some searching, JFreeChart doesn't support such calculations directly, so what I want to do is calculate it…
Steve
  • 4,457
  • 12
  • 48
  • 89
4
votes
1 answer

jfree line chart display value for every index

I am trying to create a using jfree chart library line chart and i need to display the value associated with each index in the lineChart, I cannot use a tool tip for this because I am converting the chart into an image , is there a way of displaying…
bhavs
  • 2,091
  • 8
  • 36
  • 66
4
votes
1 answer

How to make mouse wheel zoom(setMouseWheelEnabled()) in Jfreechart only affect specific axis?

When I enable the mouse wheel zoom in my chart using this code line: chartPanel.setMouseWheelEnabled(true); Scrolling the mouse wheel will zoom in/out both x and y axis. How can I disable mouse wheel zooming on one of the axis? Jfreechart Version:…
4
votes
1 answer

Jfreechart get Mouse Co-ordinates

I have been trying to get current Mouse Co-ordinates in a JfreeChart and found that the following solution was working partially JFreeChart get mouse coordinates I have been using OHLC Dataset to draw the chart and while I could get the RangeAxis…
Makarand
  • 183
  • 11
4
votes
2 answers

How to create hollow shapes in JFreeChart Scatter Plot

JFreeChart version used: 1.5.0 I tried the following to obtain hollow shapes in a scatter plot: PlotFrame.java file content: package javaapplication1; import javax.swing.JFrame; import org.jfree.chart.ChartFactory; import…
Tarik
  • 10,810
  • 2
  • 26
  • 40
4
votes
0 answers

Why Gradle build fails with java11 and jfreechart dependency?

I have a Java 8 application with I want to bring to Java 11. The Gradle 5.0 build contains a dependency to JFreeChart 1.5.0 and JAVA_HOME is set to the installed jdk-11.0.1 from Oracle. When building a get the following output: > Task…
paedu
  • 41
  • 1
4
votes
1 answer

Icon on a JFreeChart XY Plot

I have an XY plot of positions and want the newest point to be an icon. Is this possible in JFreeChart?
ShawnD
  • 992
  • 1
  • 8
  • 12
4
votes
1 answer

jfreechart histogram with dates

I want to display some dates in the X axis of a histogram chart, but i don't understand how i can do it with this code i can create a simple histogram with couples of x-y values, but they can olny be numbers, not date: DefaultTableXYDataset dataset…
Maik
  • 811
  • 3
  • 22
  • 35
4
votes
1 answer

How can I transfer dots to line in JFreeChart?

I am having a problem converting dots, which is generated by JFreeChart, into a line. First of all, there some source that really helped me reach this point Adding points to XYSeries dynamically with JfreeChart JFreechart candlestick chart weird…
OnlySalman
  • 112
  • 1
  • 12
4
votes
1 answer

How to use multiple with one OutputStream

I need to show four charts on a grails page in a grid layout with positions 11, 12, 21 and 22. Each chart is build with a code similar to: The code for the chart…
gtludwig
  • 5,411
  • 10
  • 64
  • 90
4
votes
1 answer

JFreeChart: how to change XYPlot foreground color?

The JFreeChart XYPlot background color is changed using setBackgroundPaint() but there doesn't seem to be a corresponding setForegroundPaint(). XYPlot plot = (XYPlot) chart.getPlot(); plot.setBackgroundPaint(Color.BLACK); How is the foreground…
jacknad
  • 13,483
  • 40
  • 124
  • 194
4
votes
1 answer

how to import and plot CSV in Java with timestamp

Hi Currently I am trying to import the CSV file into the Java to plot the data, basically, I can import successfully but it does not work in my CSV because it has the time format as: HH:mm:ss MM-dd-yy The data is as follow: 2016-05-15 00:00:00…