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

Transparency issue of area in area chart in jasper report

I am facing a problem when i do a area chart through jasper. The problem is that when multiple areas are there in the area chart section ,one is overrided by the next one.So the previous one is not visble. It seems to be an issue of transparency of…
Akhil
  • 21
  • 5
1
vote
1 answer

Java Shape Utilities

How to set such kind of points - small circles? I know we should set render and ShapeUtilies: render.setSeriesShape(NumberOfSerie, ShapeUtilities.[something here]); what should i write to get this circles? Documentation is here.
Denis
  • 503
  • 8
  • 32
1
vote
0 answers

jfreechart put abitrary text inside bars in a stacked bargraph

I have a horizontal stacked barchart with a dynamic number of "sub"-bars per row (number depending on data input to my program) in the chart. I would like to name the sub-bars in some way, preferably with text inside the bars. The different rows in…
1
vote
2 answers

JFreeChart + JRuby - fill area between two points on domain axis

I'm using JRuby to access JFreeChart. But I can't seem to set a domain marker on the date axis... Can anyone tell me why this is not working? def create_plot rangeaxis = NumberAxis.new rangeaxis.setAutoRangeIncludesZero(true) daxis =…
Bruno Antunes
  • 2,241
  • 4
  • 21
  • 35
1
vote
1 answer

CategoryAxis TickLabels margin jFreeChart

I want to have something like this on xAxis(CategoryAxis) tick labels with jFreechart How do I achieve this ? | | +----------+------------------+---- --> margin India …
Nagesh Salunke
  • 1,278
  • 3
  • 14
  • 37
1
vote
0 answers

Creating a polynomial graph using JFreeChart

How do you create a polynomial graph from a set of co-ordinate points? And once you've done that, how would you generate an equation for it?
user3541263
  • 219
  • 2
  • 5
  • 11
1
vote
1 answer

Change StackedBarChart Colors based on key values

I would like to modify stackedBarChart's colors using key values. I know how to do this for piecharts, but am unable to accomplish the same for stackedBarCharts. For piecharts, essentially my approach is similar to the answer stated here The lines…
stretchr
  • 615
  • 2
  • 9
  • 24
1
vote
2 answers

Next and Previous Buttons Displaying Charts Malfunction

I am trying to step through a ArrayList which contains ChartPanels. The Next button correctly steps through the charts as expected, but when I click the Previous button nothing happens. I feel like my logic may be convoluted. Thanks! Note:…
1
vote
2 answers

Set no. of MilliSecond for plot in JFreeChart

I am using MilliDTSC class in my program. I want the refresh rate to be set as 100ms . I have used javax.swing.Timer to update the GUI after 100ms, but my domain axis updates after each millisecond, because unit is 'MilliSecond' (as shown below) Is…
Gagan93
  • 1,826
  • 2
  • 25
  • 38
1
vote
1 answer

Upgrade jfreechart version

I currently have an application that runs on jfreechart-1.0.13, and would like to upgrade it to run on jfreechart-1.0.17(latest). So I am wondering how can I integrate the latest version of jfreechart with my current application? In this…
stretchr
  • 615
  • 2
  • 9
  • 24
1
vote
1 answer

JFreeChart setTickLabelFont() and setLabelFont() not working with iText PDF

I'm trying to set the font of my chart's x-axis in this manner: CategoryPlot plotCat = (CategoryPlot) chart.getPlot(); CategoryAxis xAxis = plotCat.getDomainAxis(); Font font = new Font("SanSerif", Font.STRIKETHRU, 3); //or Font font = new…
user2323030
  • 1,193
  • 4
  • 16
  • 37
1
vote
1 answer

How to format a minimalist chart with jFreeChart?

I generate a transparent chart that lets the background of a web page be seen through it. So far I've done this (omited the populating of dataset for…
Tulains Córdova
  • 2,559
  • 2
  • 20
  • 33
1
vote
1 answer

Java JFreeChart - get coordinates of boundary points

How to coordinates of boundary points, which are selected with red arrows? For example, the lower left boundary point has coordinates (-0.10, 0.00) and the upper right boundary point has coordinates (1.10, 1.15), but how to get it with any…
Denis
  • 503
  • 8
  • 32
1
vote
1 answer

JFreeChart: Background of chart is overlayed with black

I created the following Pie Chart: public class MyPieChart extends ChartComposite { public MyPieChart(Composite parent, int style, CategoryToPieDataset dataset, ProductivityViewCtrl control) { super(/* Composite comp */parent, /* int style…
Markus
  • 1,452
  • 2
  • 21
  • 47
1
vote
1 answer

Remove one pie section label from JFreeChart

How do I remove one label from a JFreeChart pie chart but keep the rest? Here is a simplified version of my pie chart. I want labels for all pie slices except the "dormant" category. It's more of a placeholder. DefaultPieDataset dataset = new…
tmn
  • 11,121
  • 15
  • 56
  • 112