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
1 answer

How to determine min and max value for ItemMargin property in StackedBarChart using jFreeChart

I am using jFreeChart api to make one application such that on movement of slider the gap width in between the two bars gets increased or decreased according to the value of the slider. But I found with different charts and different data item…
user1709952
  • 169
  • 2
  • 7
  • 21
1
vote
1 answer

Manipulate color of shapes in XYPlot of JFreeChart

Is it possible to have different coloured shapes in an XYPlot without using different series? One idea is to extend the XYLineAndShapeRenderer but where can I change the colour of single shapes when they are drawn?
ratatosk
  • 373
  • 5
  • 19
1
vote
1 answer

Jfreechart TimeSeriesChart Label on Last Item

I need a label on each last Item of all Series in Jfreechart's TimeSeriesChart. The data I used is generated from a Database, so there's a way to get each last position of a Series. Before: After:
Tobias S
  • 13
  • 2
1
vote
1 answer

Creating a normal distribution graph with JFreeChart

I am trying to make a normal distribution graph using the JFreeChart library. I am successful if I try to get one area under the graph. However I did not find a way on how get 2 areas under the graph. Here is the code for one side : public…
akemalFirdaus
  • 606
  • 1
  • 7
  • 15
1
vote
0 answers

Merging 2 grpahs(bar graph and line graph) in the same graph

My requirement is to display a graph with line chart and bar chart both have 2 different values. But both the charts must appear in the same graph. There is a way to do it in JFreechart. But my application is completely developed in JavaFX. Please…
1
vote
1 answer

JFreechart - How to set Domain Axis range?

I'm newbie in JFreechart. I've a dataset which contains more records(>50 ) i.e (the X-values are products and Y-Axis are quantity) , in the chart i want to display only first 15 records in the X-axis. I'm using CategoryAxis like. final CategoryPlot…
CarlJohn
  • 727
  • 2
  • 9
  • 20
1
vote
1 answer

How to put date from mysql database into JFreeChart graph?

I have faced with a problem of putting date on my JFreeChart graph. I read the double value and date value from my local MySql database but I cannot put date onto the graph. Here is my useless tryings XYSeries series = new XYSeries("Dynamic"); …
1
vote
2 answers

how to set the x axis to int instead of date in Gantt Chart

I'm trying to generate a task scheduler chart using Gantt Chart , but encountered some problems. How can the X axis displaye as numbers instead of dates. is there any way to write a functhion TaskWhatIWant(String , int ,int) instead of Task(String…
user2489974
  • 13
  • 1
  • 4
1
vote
0 answers

How can I get the legend of a JFreeChart plot and add it to a JPanel

I have multiple JFreeChart plots in chart panels. I want to show the legend separately as a different component, as all the plots use the same legend. The way I can see this happening is to grab the legend as some form of JComponent and add it to…
Andy B
  • 328
  • 3
  • 9
1
vote
1 answer

which is better for making chart javafx or jfreechart

I need to make candlestick chart, ohlc chart, xyplot (probably all in different application) I have tried both jfreechart and javafx chart and is successful in implementing both. As these charts are from trading perspective and hence they are…
learner
  • 1,952
  • 7
  • 33
  • 62
1
vote
1 answer

how can I implement a XYLine jfreechart in java

I am new to jfreechart.I want to display a chart based on values from my data base table Table is dns_time with fileds dns_lookup_time,update_time. I want update_time on x-axis and dns_lookup_time on y-axis.And the curve should be displayed…
user2365917
  • 1,095
  • 5
  • 15
  • 21
1
vote
1 answer

Custom label for ValueAxis, JFreeChart

I am having labels after my bars(not displayed here) which result in a longer range of values then wanted(i.e. would like to remove "125" in this case). How can I remove the last value in my ValueAxis/RangeAxis(NumberAxis?)? First thought I could…
Grains
  • 950
  • 3
  • 16
  • 35
1
vote
1 answer

Using JFreeChart Scatter Plots is there a Way to Subdivide Styles for Data Sets?

I am using JFreeChart to render a scatter plot with a couple thousand data points. I control the appearance/style of each ScatterPlotDataset by attaching a suitable XYLineAndShapeRendererper to each data set; eg. points in data set 1 appear as…
Toaster
  • 1,911
  • 2
  • 23
  • 43
1
vote
1 answer

How do I create a pie chart that displays the quantity of something registered by each someone?

In my project, I want to display in the pie chart how many institutions each employee registered in the system. The institutions table contains a foreign key with the id of the employee who registered the institution, so every institution has an…
Rasshu
  • 1,764
  • 6
  • 22
  • 53
1
vote
2 answers

overlapping lables in JFreeChart pie charts

i'm using JFreeChart to plot some data in to a pie chart. when the amount of data is getting high the labels of the graph is overlapping as shown below? can any one suggest me to avoid this issue and show the labels clearly?? -- Regards Rangana
Rangana Sampath
  • 1,447
  • 3
  • 32
  • 57