jfreechart

[B]How to track move/drag mouse action in JFreeChart[/b]

I want to know whether it is possible to listen to the mouse event of dragging in JFreeCharts. By default it is assign to zooming. I remove this zooming functionality with, chartPanel.setDomainZoomable( false); chartPanel.setRangeZoomable( false); And I have used ChartMouseListener interface for listening to mouse events. I'm able to t...

How to handle mouse dragging event in JFreeChart

I want to know whether it is possible to listen to the mouse event of dragging in JFreeCharts. By default it is assign to zooming. I remove this zooming functionality with, chartPanel.setDomainZoomable( false); chartPanel.setRangeZoomable( false); And I have used ChartMouseListener interface for listening to mouse events. I'm able to ...

width of the bar in Jfreechart

Is there a way to adjust the width of the bars in a Barchart.I create my chart with the following code. final JFreeChart chart = ChartFactory.createBarChart("Report", // chart title "Date", // domain axis label "Number", // range axis label dataset, // data PlotOrientation....

How can I display a JFreeChart in web browser with Stripes Framework

This is the situation: My 'metrics.jsp' page submits a couple variables that are needed to create the chart. The 'ProjectActionBean.java' calls down to a few other java classes that create the JFreeChart. I can display the chart in a pop-up but I want it to be displayed in the original browser window. JFreeChart placeChart = ChartFacto...

Display rest of rows as "other" with JfreeChart

I'm working with JFreeChart and would like to create a Pie Chart that shows the first 10 records on the chart and the remainder of the records combined under "Other". Is there an approach to do this? ...

Editable Java charting libraries

I have an application in which I want to display various charts, mostly bar graphs, pie graphs, etc. In the past, I've used JFreeChart, but (at least by default), JFreeChart does not allow an easy way of editing things like the bar colors. The "properties" popup menu that comes by default by right click is pretty limited. Is there a mor...

Create barchart using jfreechart with bars of same category together

I want to make bar chart using jfreechart such that the bars which belong to the same category should be displayed adjacent without any gaps. The categories should be displayed with gaps. Also each category may have different number of bars. How it can be achived using Jfreechart library? Following image is the sample of what I require....

to create barchart using jfreechart such that use different background color for a special bar

I want to create barchart using jfreechart such that an special bar's background color can set be set different from the background color of the plot. Is it possible using jfreechart or any other way? Thanks in advance, Abhinav ...

Cewolf zoom on x-axis

Hi , I use the cewolf version 1.1 created by ulf dittmer. I want to set the x-axis domain for zooming. I use the properties lowerDomainValN and upperDomainValN in the zoombothaxis class as parameters for the chart but I always get an exception : Exception Details: javax.servlet.jsp.JspException java.lang.IllegalArgumentException rais...

how to prevent duplication of bar chart in ireport

Hello good people! I've tried to use chart in ireport for the first time.I've used a bar chart and anytime i preview the chart i see plenty of them, i think about 6.I only need a single one is there anything that i didn't do? i have a query like this : SELECT COUNT(*) AS total_message ,`status` , DATE_FORMAT(date_created,'%M') AS `mon...

Can't find bundle for base name

I'm using a library that has a dependency on jfreechart (v 1.0.9). When I try to run the .jar, I get: java.util.MissingResourceException: Can't find bundle for base name org.jfree.chart.LocalizationBundle, locale en_US at java.util.ResourceBundle.throwMissingResourceException (ResourceBundle.java:1521) at java.u...

Get the Following Coordinate In JFreeChart

I wish to get the following coordinate in JFreeChart. I try to use chartPanel.getScreenDataArea() But, it is not the area I want. The returned rectangle is outside the area I wish to have. The coordinate I wish to have is being marked as ??? in green. (zoom in version) ...

Setting a fixed width domain for a TimeSeries plot in JFreeChart

I've a dynamic timeseries chart to which some value is added every 20 seconds. I want to set the width of the plot to something like say 30 minutes so that my chart starts showing a "30-min canvas/plot" starting from the left hand side until it fills up the whole plot. After every 30 minutes, I want to clear up the old data and only show...

CrossHair Tracing Problem In JFreeChart

I was able to implement real-time mouse tracing as follow : The source code is as follow : http://jstock.cvs.sourceforge.net/viewvc/jstock/jstock/src/org/yccheok/jstock/charting/CrossHairUI.java?revision=1.5&view=markup http://jstock.cvs.sourceforge.net/viewvc/jstock/jstock/src/org/yccheok/jstock/gui/ChartJDialog.java?revision=1...

histogram in jfreechart

I'm trying to use JfreeChart to create a chart for the histogram of an image , but I don't fully understand how to provide the input data for the histogram .The function I am suppose to use is this: addSeries(java.lang.Comparable key, double[] values, int bins) I find that documentation is really unclear. I have a 256-element array f...

How can I do "fill area" using Eastwood chart plugin for Grails?

I am using the Eastwood chart plugin (0.5) for Grails (which also requires the google chart plugin). I have a line graph and it's all working brilliantly, but I am struggling to find much information on the plugin and the different things it can do other than what's in the example gsp file. does anyone know how I can get the area und...

Zooming in JFreeChart using scrollbar (see google finance)

Is it possible to have some kind of zooming functionality in JFreechart like it is in google finance? I know there is a zoom in and zoom out, but I would like to have the bar on the bottom with which you can specify your zoom level more precisely. Anyone has a plugin/addon? ...

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 = DateAxis.new daxis.setRange( Time.at(@dataset['date_start'].to_i) , Time.at(@dataset['d...

Using Jfreechart , How can I have same scale for X and Y axes?

Using Jfreechart , How can I get same scale for X and Y axes? suppose the Y data values are -1000, -2000 so on... to -12000 But the X values are positive. I want to have scale - the space between ticks - to be same for X and Y . That means on X axis - space betwee 0 and 1000 to be equal to space between 0 and -1000 on Y -axis. Please ...

How to Fill the gradient color in JFreeChart PieChart3D?

I want to fill the PieChart3D with a gradient color, I am using JFreeChart for drawing the graph. but it is not filling with gradient color rather than it is filled with a solid color.. Here is the code I am using for changing the color. public void setColor(PiePlot3D plot, PieDataset dataset) { GradientPaint gp0 = new GradientP...