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

jfree charts sample tutorial

is there any links where we can find sample source code/ tutorial / help to use jfreecharts?? thank you.
JJunior
  • 2,831
  • 16
  • 56
  • 66
4
votes
1 answer

Setting label and value of the chart

I am creating pie charts using JFreeChart, and I want to set the value and the label seperately like in iReport. In other words, I want the chart to show different results on the pie than in the legend. Is there any way that I can achieve this?
Halo
  • 1,524
  • 3
  • 24
  • 39
4
votes
3 answers

Subscript in Axis description

I wanted to know if it is possible to use subscript in axis description. I have the following code XYItemRenderer lineYY = new StandardXYItemRenderer(); lineYY.setSeriesPaint(0, Color.BLUE); lineYY.setSeriesVisibleInLegend(0,false); …
4
votes
1 answer

JFreeChart custom x-axis labels

I have multiple series of data. Series are years: 2013,2014,2015 etc. Data is date+value within a given year. Because data needs to be categorized with years, I'm using "day of the year" values on the x axis, range between 1 and 366. So values for…
nagylzs
  • 3,954
  • 6
  • 39
  • 70
4
votes
1 answer

Is it possible to show hollow candle in Candlestick jfreechart?

Most of financial chart libraries use some rules for coloring the candles: if close >= open, then candle is hollow (not filled) if close < open, then candle is filled if previous close <= close, then candle is green if previous close > close, then…
Martin Ille
  • 6,747
  • 9
  • 44
  • 63
4
votes
2 answers

Fix Bar Chart Width and Spacing between bars in JFreeChart

I have stacked bar chart in which the number of columns is dynamic, can change from 1 to n columns. I want the spacing between the charts and width of the bar to be consistent. How do I fix it. Please suggest solutions / ideas.
SKR
  • 779
  • 4
  • 17
  • 31
4
votes
1 answer

Creating a time series with jfreechart

Right now I want to create a time series graph in jfreechart. However the examples online only have charts using classes like "Day", "Month", and so on. So I want to essentially create a XY line chart. However the problem I'm having is that…
Albinoswordfish
  • 1,949
  • 7
  • 34
  • 50
4
votes
2 answers

Dynamic graphing using Jfreechart

Right now I'm using JFreeChart in order to create a dynamic chart. However the chart is significantly slowing down my GUI. I was just wondering, is jfreechart generally heavy in the graphics department (my computer is not fast at all). Or is there a…
Albinoswordfish
  • 1,949
  • 7
  • 34
  • 50
4
votes
1 answer

JFreeChart grid line Color

I am making a BarChart with JFreeChart in java. The default code makes a chart with dashed grid lines. As far as I can see, here is the only part of the code that deals with the gridlines. final CategoryPlot plot = chart1.getCategoryPlot(); …
user3794422
  • 311
  • 1
  • 5
  • 17
4
votes
1 answer

JFreeChart 2 Bottom Domain Axes

I am currently facing a problem using the JFreeChart. I require 2 domain axes which are related, eg: | | | | | | |_________|_________ |____________(first axis) 8:00 - 9:00 9:01 - 10:00 10:01 - 11:00 |______|________|(second axis below the first…
user2609825
4
votes
3 answers

How to add additional text in JFreechart?

I just want to add additional details about the chart. how can i include additional details like in the below pic.
A.Mohamed Bilal
  • 115
  • 1
  • 13
4
votes
1 answer

How to combine 2 SegmentedTimelines in 1?

As in documentation it is said: " /** * Factory method to create a 15-min, 9:00 AM thought 4:00 PM, Monday * through Friday SegmentedTimeline. *

* This timeline uses a segmentSize of FIFTEEN_MIN_SEGMENT_SIZE. The *…

Bernard Burn
  • 661
  • 5
  • 20
4
votes
1 answer

Display mouse coordinates near mouse as hints on mouse move

On an XYPlot, I want the coordinates of mouse displayed as hint near to mouse, but only when (the mouse) move on chart! In another words, when the crosshair moves to another point, the positioning of the coordinate values would move too, following…
Universe
  • 1,527
  • 1
  • 15
  • 22
4
votes
2 answers

How to use SwingWorker?

Friends, i am developing a java application. Thats for performance monitoring. on that i am getting values in one class and drawing a graph in another class. i want to use swingworker to perform those two class alternatively. ResultSet rs; …
A.Mohamed Bilal
  • 115
  • 1
  • 13
4
votes
1 answer

How can I start JFreeChart XYPlot graph of a timeseries from the left(starting from Y axis)

I am using JFreechart to display a graph that changes with time. But the values are getting added at the right of the graph. I want the graph to start at the left and stop at some point on the right. Also, I want part of the graph line to be…
Bug Killer
  • 661
  • 7
  • 22