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
7
votes
2 answers

Setting different y-axis for two series with JFreeChart

I am using JFreeChart to plot two series of data (XYSeries) using a linechart. The complicating factor is that one of the data series has y-values that are typically much higher than the y-values of my second data series (let's say that the first…
Niek Tax
  • 841
  • 1
  • 11
  • 30
7
votes
2 answers

Why does a Latin-characters-only Java font claim to support Asian characters, even though it does not?

When rendering a chart with JFreeChart, I noticed a layout problem when the chart's category labels included Japanese characters. Although the text is rendered with the correct glyphs, the text was positioned in the wrong location, presumably…
Scott Dudley
  • 3,256
  • 1
  • 18
  • 30
7
votes
4 answers

Has anyone done crosshairs that follow the mouse in JFreeChart?

We are using JFreeChart to make XY plots and we have a feature request to do a crosshair that moves along with the mouse and highlights the data point that most closely maps to the x-value of the mouse. You can see a similar example at Google…
David Irwin
  • 458
  • 3
  • 9
7
votes
1 answer

Is it possible to draw 3D area chart using jFree?

Is it possible to Create 3D area chart using jFree ? If yes, can someone point me to the right direction ? Any workaround possible?
Nagesh Salunke
  • 1,278
  • 3
  • 14
  • 37
7
votes
1 answer

jfreechart setbackgroundpaint not doing anything

To anyone who has experience with jFreeChart for Swing applications: I am having trouble changing the background for charts. My ultimate goal is to set a smooth gradient background for my charts, but I am unable to change any backgrounds at all.…
ryvantage
  • 13,064
  • 15
  • 63
  • 112
7
votes
1 answer

JFreeChart select an area without zooming

I recently started using JFreeChart and there is something i would like to do but i'm not sure if it's possible. My program is supposed to draw a spectrogram (a sound graph) from a wav file. So i managed to get the data from my wav file in a double…
user2299206
  • 71
  • 1
  • 3
7
votes
3 answers

how to change pie chart colors of JFreeChart?

how to customize the colors of JFreeChart graphic. lets see my java code : private StreamedContent chartImage ; public void init(){ JFreeChart jfreechart = ChartFactory.createPieChart("title", createDataset(), true, true, false); File…
Karim Oukara
  • 2,638
  • 8
  • 38
  • 51
7
votes
2 answers

JFreeChart Legend Display

In my JFreeChart timeseries plots I find the legends lines too thin to see the colour accurately. Another post [ https://stackoverflow.com/questions/7306901/jfreechart-change-sample-of-colors-in-legend ] suggested overriding a renderer method as…
Richard B
  • 895
  • 13
  • 39
7
votes
2 answers

JFreeChart with highlighted points

I am using JFreeChart to draw a graph. The code is package com.daya; import java.awt.Color; import java.io.BufferedReader; import java.io.DataInputStream; import java.io.FileInputStream; import java.io.InputStreamReader; import…
Daya
  • 724
  • 3
  • 14
  • 32
7
votes
1 answer

Embed the legend into the plot area of JFreeChart

In JFreeChart, is it possible to embed the legend into the chart itself? Legend can be set on top, bottom, left, right of the chart as follows, but is it possible to imbed it into the chart? LegendTitle…
Junba Tester
  • 801
  • 2
  • 9
  • 15
7
votes
3 answers

JFreechart ChartPanel not getting Transparenent

I want to give the chart background a transparent look (not fully transparent but a little bit). Here is my code. I have added few code lines to add transparency, but I guess the ChartPanel is not getting transparent. After writing those code lines,…
Xara
  • 8,748
  • 16
  • 52
  • 82
6
votes
3 answers

How to create an SVG with JFreeChart?

On the JFreeChart web site it says that the library can output the chart in vector format. From the JFreeChart site: support for many output types, including Swing components, image files (including PNG and JPEG), and vector graphics file…
super_ernie77
  • 63
  • 1
  • 1
  • 3
6
votes
2 answers

How to draw line over a JFreeChart chart?

I have updatable OHLCChart. I need to draw a line over chart. How to implement it?
christo
  • 671
  • 1
  • 8
  • 26
6
votes
1 answer

JFreeChart Combined XY Plot with Time Series

I want to place two Time Series Charts sharing the same time domain axis above each other, both with multiple datasets. chart1 = ChartFactory.createTimeSeriesChart("", "", "", tsc1, true, true, false); subplot1 = chartCOT.getXYPlot(); ... chart2 =…
alrts
  • 338
  • 5
  • 12
6
votes
1 answer

JFreeChart Displays integer values as float in Y-Axis

I'm using JFreeChart to create a Time Series Chart but while I'm passing Integer values as Y-Axis it shows them as float!! what is the problem? I'm Creating chart like this: this.TodaySeriesGoldPrice = new…
Ariyan
  • 14,760
  • 31
  • 112
  • 175