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

PeriodAxis incorrect TimeZone

Using the DateAxis it works fine: // From: 2/5/13 02:00:00 PM (+1), To: 2/5/13 03:00:00 PM (+1) // Configuring dataset Timezone tz = new SimpleTimeZone(1, "Test"); TimeSeriesCollection dataset = new TimeSeriesCollection(tz); TimeSeries timeSeries =…
Tiago
  • 2,871
  • 4
  • 23
  • 39
4
votes
2 answers

JFreeChart XYPlot with labels

I'm using an XYPlot in JFreeChart. All the lines on it are XYSeries objects. Both axes are NumberAxis objects. The Y-Axis range is from 0-1, with ticks every .1. Along with displaying the numbers though, I'd like to display text on the Y-Axis, like…
Neal
  • 6,722
  • 4
  • 38
  • 31
4
votes
1 answer

JFreeChart PeriodAxis :29 minutes fractions

I am trying to use PeriodAxis in a chart to graph some time series data. The first data point occurs at 2012-01-08 19:00:00 and the final data point occurs at 2012-01-09 19:00:00. When the chart is drawn, the tick labels start at 19:29 and end at…
Tiago
  • 2,871
  • 4
  • 23
  • 39
4
votes
1 answer

Tooltip with values while using SpiderWebPlot

I'm using SpiderWebPlot from JFreeChart in order to generate a chart. But what I want to have, is tooltips with values. I've found that I should set StandardCategoryTooltipGenerator to the plot, but that doesn't seem to be the point. Here is my…
Daniel Cisek
  • 931
  • 3
  • 9
  • 23
4
votes
2 answers

JFreeChart with dual x-axis

I'd like to ask if it is possible to have a time series chart with dual x-axis (or y-axis but because it is a time series dataset I focus on dual x-axis). I have two data files in which the measurements were made during a minute or a whole day. As a…
4
votes
3 answers

Stacked Area Chart, fixed y axis label width

I am creating a JFreeChart stacked area chart. I want my y axis label's width to be fixed, and I don't want to shift the chart as the width increases. See the image explaining the problem. I am facing similar problem as posted on the JFreeChart…
Neeraj
  • 1,776
  • 2
  • 16
  • 35
4
votes
2 answers

How to change shape of square to dot in XYSplineRenderer Graph

In JFreeChart XYSplineRenderer Graph I need to display small dots instead of small squares to display XY coordinates. How can I change the shape of these dots?
ajkush
  • 587
  • 2
  • 11
  • 25
4
votes
1 answer

JFreeChart drag plot area

I would like to be able to drag the plot area to be able to move the x-axis across. Is this possible?
DD.
  • 21,498
  • 52
  • 157
  • 246
4
votes
1 answer

JFreeChart different colors in different regions for the same dataSeries

In JFreeChart I'm trying to color different regions of an XY line chart/curve based on y value. I'm overriding the XYLineAndShapeRenderer's getItemPaint(int row, int col), however I'm not sure how it handles the coloring of the line between the xs…
user121196
  • 30,032
  • 57
  • 148
  • 198
4
votes
4 answers

How to create "please wait" Swing dialog while component paints

Still relatively new to Swing but after a couple of hours of search, I couldn't find the answer online, hence this post (sorry if already answered and I overlooked it). I'm using JFreeChart in a Swing application. Some charts are relatively heavy…
Tom
  • 1,375
  • 3
  • 24
  • 45
4
votes
2 answers

JFreechart Rendering a timeseries on a tick scale

I have a timeseries of data which i'd like to plot on a tick scale rather than a time scale. e.g. If the series contains points received at times: 10, 15, 30, 100. Instead of plotting these against a regular time series axis where the distance…
pjp
  • 17,039
  • 6
  • 33
  • 58
4
votes
1 answer

JFreeChart : How to display hours format on the y axis

I can't find how to modify the label of the y axis. For now I use a TimeSeries with the MINUTE class, and then insert the TimeSeries into a Dataset. It look like this : final TimeSeries s1 = new TimeSeries("Importation Time", Minute.class); …
user1484901
  • 113
  • 1
  • 10
4
votes
2 answers

Hide some category labels in JFreeChart to avoid overlapping

I'm generating a StackedBarChart using JFreeChart. Depending on the input data I can have a lot of categories (usually between 20 and 40), leading to overlapping of the labels. In the following screenshot you can see the chart with categories from 1…
moeTi
  • 3,884
  • 24
  • 37
4
votes
2 answers

HeatMaps with JFreeChart

I have a dataset of points (x,y) and I would like to create an heatmap of this dataset. More specifically, I would like an image in which I have lighter colors in the areas where I have a bigger concentration of points and darker where there are…
Giovanni Soldi
  • 385
  • 1
  • 4
  • 12
4
votes
1 answer

JFreeChart How to get data points displayed on a Time series chart

I just want to get the data points on my chart to show up, how do I do this? The plot shows up fine as a line plot but I want small markers for each individual data point. JFreeChart portion of the app is: private XYDataset createDataset() { …
fred basset
  • 9,774
  • 28
  • 88
  • 138