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

using dataset.addSeries with a Long[] values

The arguments that dataset.addSeries takes are as follows (java.lang.Comparable key, double[] values, int bins, double minimum, double maximum) Right now, I am trying to use a variable called…
user2007843
  • 609
  • 1
  • 12
  • 30
1
vote
1 answer

JFreeChart LogAxis Frequency/Resistance multipliers

I'm trying to figure out how to dynamically format the values on the axes of my line chart based on the multiplier. I'm using LogAxis for both the X and Y axes, as follows: final LogAxis rangeAxis = new LogAxis(valueAxisLabel); …
1
vote
1 answer

Generating a standard deviation plot from a row in a JTable

I am trying to create a JTable that I can be able to click on a row and it will display a standard deviation curve. Here is what my JTable looks like right now. So for example, the standard deviation for the string screen saver, action->login,…
user2007843
  • 609
  • 1
  • 12
  • 30
1
vote
1 answer

jFreeChart GroupedStackedBarRenderer Sublabel alignment in vertical mode

I'm having a small layout problem with jFreeChart (1.0.14, latest maven version). As images do more than words here: note the vertical displacement of the bars relative to the sublabels "A", "B", "C", "D". I'm not sure if this is a bug or a…
incaseoftrouble
  • 353
  • 1
  • 13
1
vote
2 answers

JFreeChart charts appearance when combined with JasperReports

I use JFreeChart in my java application to display charts like this one: But after creating a report with JasperReports that chart now looks like this: And that's not all, this is how a chart looks like inside the first PDF report generated with…
Salvatorelab
  • 11,614
  • 6
  • 53
  • 80
1
vote
1 answer

Passing Locale details via Jasper-Reports to JFreechart

I'm adding Internationalization into a Tapestry web-app which uses Jasper Reports to generate normal tabular reports and also charts and graphs via JFreeChart. Using the Jasper REPORT_LOCALE parameter, I can set the Locale for Jasper reports and…
Adrian Pronk
  • 13,486
  • 7
  • 36
  • 60
1
vote
1 answer

Plotting a locus in XY space using JFreeChart

I would like to plot the locus of a particle in two dimensional space. My data is a sequence of X,Y coordinates and I would like to plot these. Would appreciate any pointers to examples that show how to do this. An example of a locus plot can be…
user1172468
  • 5,306
  • 6
  • 35
  • 62
1
vote
1 answer

Charts with MySQL and Java Web Application

I've been looking through examples online about charting libraries to work with in a Java Web Application but they all keep trying to implement some form of php to get the data before the chart is produced. Ideally I would like to use google charts…
1
vote
2 answers

JFreeCharts TimeSeriesCharts without X value

How to create TimeSeriesChart with constant distance for domain Axis (X values), just like LineChart but with DateAxis? Normal TimeSeriesChart looks like this: But I need something like: with Date Axis on the bottom Chart data are changing very…
jmichal
  • 11
  • 1
1
vote
2 answers

jFreeChart. height of subplots inside combined chart bug?

I'm using jFreeChart to display this kind of plot: Well, the problem is that when the program runs on a monitor with >800px height the dark shadows and the 45 dashed line are not painted correctly. I've found that the problem is caused by a wrong…
Salvatorelab
  • 11,614
  • 6
  • 53
  • 80
1
vote
1 answer

I have a bar chart which I want to update and I tried the revalidate and repaint methods but with no success

class GraphGenerator1 extends JPanel { ChartPanel chartPanel, sbc; void generator(int t, int Value1, int Value2) { if (t == 1) { DefaultCategoryDataset gData = new DefaultCategoryDataset(); …
Nirmit Dalal
  • 315
  • 5
  • 12
1
vote
2 answers

jfreechart at client side

I have implemented gantt chart using jfreechart. I want to know how can I get this chart accessed from client side. Also I do not want just image of the chart, I also want the zooming functionality alongside it. How to achieve this? Please help.
genonymous
  • 1,598
  • 3
  • 18
  • 27
1
vote
1 answer

How to deal with 2 TimeSerieses with the exact values?

I'm creating a TimeSeries chart with 2 TimeSerieses in it (i.e. A Dataset holding 2 TimeSeries objects. It happens that both TimeSeries objects holds the same exact values and they are simply overlapping but that's not clear to the client as he only…
Muhammad Gelbana
  • 3,890
  • 3
  • 43
  • 81
1
vote
1 answer

Export to excel and display chart

I am developing this application that requires me to provide an option to export to excel and generate graphs in the excel based on user choice.Now i have used a combination of JExcel and JFreechart to generate the excel sheet and display…
android_eng
  • 1,370
  • 3
  • 17
  • 40
1
vote
0 answers

JFreeChart ChartPanel Zoom in but resume sliding

I'm trying to use the dynamic data chart with time in the domain axis, and some integer as the range axis. When I tried to zoom-in, even if the data chart is still adding in new items, the sliding stops. Is there a way to enable sliding even though…
user1157751
  • 2,427
  • 6
  • 42
  • 73