jfreechart

How can I create a bar-chart with JFreeChart, that shortens too long bars with a visible hint?

I want to create a bar-chart, but extraordinary high values should be shortened. An example is this image: I hope it is clear what I want. My question is: How can I do this with JFreeChart. If it isn't possible with JFreeChart you can possibly recommend alternative open-source Java-libraries to produce such an output. ...

Real-time graphing in Java

I have an application which updates a variable about between 5 to 50 times a second and I am looking for some way of drawing a continuous XY plot of this change in real-time. Though JFreeChart is not recommended for such a high update rate, many users still say that it works for them. I've tried using this demo and modified it to displa...

How can I draw a chart with a TimeSeries in jfreecharts that doesn't interpolate date values for me?

Hello, I'm trying to display data on a XYBarChart using JFreechart. The chart should display points in time along with a count. Thus, if the user chooses Jan 25 and March 25th as the range, the chart should display data between those dates in certain intervals: if the user chooses HOUR, then I create a collection of every hour from Jan ...

How to combine multiple charts created using JFreeChart API?

Hi All: My requirement is need to display 2 barchart and 3 trendchart in single page. For that, i have used JFreeChart API and sending the image in bytearray format through response. Its working fine for single image. How do i merge all 5 charts and send that through response?. Please help me. Sample Code: chartTypeCode="1...

JFreeChart with SWT

I'm developping a plugin for eclipse and extending the org.eclipse.ui.views extension point. I want to use JFreeChart for drawing some graphics in eclipse view. Is it possible to use JFreeChart with SWT in eclipse view ? ...

Eclipse RCP with JFreeChart

I'm trying yo use JFreeChart in RCP application with a simple view. I added JfreeChart jar file as a referenced library to project. The view could not be created because of the error : Could not create the view: Plug-in "ViewJFreeChart" was unable to instantiate class "viewJFreeChart.View". java.lang.NoClassDefFoundError: org/jfree/da...

JFreeChart get mouse coordinates

Is there a way in JFreeChart to determine from a ChartMouseEvent that x,y coordinates (in plot space) the mouse is over? I've tried using the domain crosshair value but that seems inaccurate and lags the actual mouse event. thanks, Jeff ...

setting chart size to fixed value in JFreeChart

In JFreeChart graphics, if you resize the application window, the graphics are repainted according to the application window size. Is it possible to set the chart size to fixed values? ...

Glitchy graphing using JFreeChart

Hi, I'm working with JFreeChart to plot several TimeSeries charts. It seemed to be working fine, but as of today, all the graphs seem to flicker and are randomly glitching making them impossible to see. If I minimize and maximize, the issue gets fixed for a few seconds until the next update or mouse click. Does anyone have an idea about...

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 this works beautifully for the tabular reports but it doesn't work for the JFreeChart report...

Pie Chart sections out of order in JasperReports

I am creating a pie chart using a JRBeanCollectionDataSource. I create that with an ArrayList whose contents are ordered specifically. When JasperReports uses JFreeChart to generate the Pie, the content order is remixed in no apparent ordering. JasperReports 3.5.3 JFreeChart 1.0.11 Java 1.6 ...

How to reset the rendered colors used in JFreeChart

I'm using a XYPlot to show a line graph with 1 or more lines in it. I have it combined with a listener pattern so it can receive updates: if so, it removes the lines using a dataset.removeAllSeries() (dataset is of type XYSeriesCollection) call, and then adds the new lines using dataset.addSeries(...) However, a new graph with new lines ...

JfreeChart XYPlot freezing after zoom in/out

In this demo application, XYPlot is drawn with dynamic data. With every new data the graphic slides to left dynamically. But the problem is if you zoom in or zoom out on XYPlot the graphic stops sliding and new data can not be seen on XYPlot. Is this a bug for JFreeChart or is it default behaviour for XYPlot ? ...

JFreeChart disable zooming

Is there an easy way to disable zoom in/out feature for XYPlot which is drawn in ChartComposite ? Overriding the zoom methods for XYPlot will be a solution but I wonder if there is an easy way.. ...

java.lang.VerifyError after extending class

I'm extending the JFreeChart ChartComposite class. When I try to create the instance of extended class I'm getting java.lang.VerifyError : .... incompatible object argument for function call error. ...

JFreeChart connecting points in stacked bar charts

Hi, I created a stacked bar chart using JFreeChart (similar to this one). Now I would like to connect the points of the corresponding series for all rows. Is this possible using JFreeChart? ...

JFreeChart in scrollpane

Hi, I'm having a big graph created with jfreechart. This chart is too big for the screen, so I would like to put it in a scrollpane. However, when using the scrollbar, the complete graph is redrawn everytime, which makes it extremely slow. Is there a solution for this? thanks, Bart ...

Hide labels on jfreechart/PiePlot3D piechart.

I'm trying to get the jfreechart PieChart3D to hide labels. I can't find anything in the documentation. Anyone know how to do this? <% response.setContentType("image/png"); %><%@page import="org.jfree.data.general.*"%><%@page import="org.jfree.chart.*"%><%@page import="org.jfree.chart.plot.*"%><%@page import="java.awt.Color" %><% ...

Change the color of jfreechart piechart.

I want to change the color of the "pieces" of pie in my jfreechart PieChart3D, this is the code that renders the piechart: <% response.setContentType("image/png"); %><%@page import="org.jfree.data.general.*"%><%@page import="org.jfree.chart.*"%><%@page import="org.jfree.chart.plot.*"%><%@page import="java.awt.Color" %><% Defaul...

Has anyone done crosshairs that follow the mouse in JFreeChart?

We are using JFreeChart to make XY plots and we have a feature request to do a crosshair that moves along with the mouse and highlights the data point that most closely maps to the x-value of the mouse. You can see a similar example at Google Finance - http://www.google.com/finance?q=INDEXDJX:.DJI,INDEXSP:.INX,INDEXNASDAQ:.IXIC. Those ...