New version of JFreeChart Sample WAR available

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Guest

Re: I've got the JFreeChart JAR files in the WEB-INF/lib, bu

Post by Guest » Tue May 10, 2005 2:06 pm

how to write jsp exception in log file

mjtee

Post by mjtee » Tue Jul 26, 2005 8:27 am

Hello Richard,

May i know why i can't display the graph while others JSP is working fine? There is no error showing, only the graph not able to displayed. Please advice.

Thanks.
Regards,
mjtee

mjtee

Post by mjtee » Tue Jul 26, 2005 9:46 am

hello,

My mistake, i found it... is the web.xml cause the chart now showing.

Thanks.
Regards,
Ming Jade

zulfikaralib

Re: New version of JFreeChart Sample WAR available

Post by zulfikaralib » Wed Aug 31, 2005 7:51 am

Hello Richard,

I've managed to run the war file on my system and its working absolutely fine with the static Data that has been defined in WebHitDataSet.java

I also managed to reteieve the data from Oracle and work it with Bar and Pie Chart using the same query, but am not able to work that with XY Chart.

Is it possible to do so? Please do let me know of it. I have thought of executing the query in the DataSet class and then store the resultSet in the ArrayList. What do you suggest?

Thank You.
Zulfikarali Barodawala,
zulfikaralib@gmail.com

mjtee

Post by mjtee » Wed Sep 14, 2005 4:46 am

Hi Richard,

I found that the example showing the chart will always create one image file under the WINNT folder for Window 2000. May i know how can i delete the file every time the user close the application or maybe we can write to the same image name, since every refresh will create one image file with different name.

Please advice.
Thanks.
Regards,
mjtee

Guest

Post by Guest » Fri Sep 16, 2005 11:19 am

Another option is save a chart image to output stream instead of filesystem, then stream out directly to client browser.

Guest

Re: about org.jfree

Post by Guest » Fri Nov 04, 2005 6:14 pm

alejo wrote:Hi everyone:

Im wondering if anyone of you know where can i get the java files of the org.jfree

thanks :roll:
do u kno some punch lines :wink:

khanhtran
Posts: 5
Joined: Mon Jul 17, 2006 3:34 am

When will it works with JFreeChart 1.0.1?

Post by khanhtran » Tue Jul 18, 2006 11:22 am

JFreeChart is now at version 1.0.1. The sample doesen't work with this version. When will it works with JFreeChart 1.0.1? What to change the source to work with this JFreeChart version?
Thanks.

gohkimle
Posts: 1
Joined: Tue Jul 18, 2006 1:21 pm
Location: Singapore
Contact:

Re: When will it works with JFreeChart 1.0.1?

Post by gohkimle » Tue Jul 18, 2006 2:04 pm

khanhtran wrote:JFreeChart is now at version 1.0.1. The sample doesen't work with this version. When will it works with JFreeChart 1.0.1? What to change the source to work with this JFreeChart version?
Thanks.
You can download the updated web archive I've created: kimleng.goh.googlepages.com/jfreechart-sample.war

Basically, besides changing to use jcommon-1.0.0.jar and jfreechart-1.0.1.jar in webapps/jfreechart-sampleWEB-INF/lib/, just change the source code in WebHitChart.java and recompile that file. The changes required are:

Code: Select all

diff WebHitChart.java.old WebHitChart.java
27,30c27,30
< import org.jfree.chart.renderer.BarRenderer;
< import org.jfree.chart.renderer.StandardXYItemRenderer;
< import org.jfree.chart.renderer.StackedXYAreaRenderer;
< import org.jfree.chart.renderer.XYAreaRenderer;
---
> import org.jfree.chart.renderer.category.BarRenderer;
> import org.jfree.chart.renderer.xy.StandardXYItemRenderer;
> import org.jfree.chart.renderer.xy.StackedXYAreaRenderer;
> import org.jfree.chart.renderer.xy.XYAreaRenderer;
35a36,41
> import org.jfree.data.category.DefaultCategoryDataset;
> import org.jfree.data.general.DefaultPieDataset;
> import org.jfree.data.xy.XYSeries;
> import org.jfree.data.xy.XYSeriesCollection;
> import org.jfree.data.xy.DefaultTableXYDataset;
> import org.jfree.ui.RectangleInsets;
76c82
<                       ChartUtilities.writeImageMap(pw, filename, info);
---
>                       ChartUtilities.writeImageMap(pw, filename, info, false);
113c119
<                       plot.setInsets(new Insets(0, 5, 5, 5));
---
>                       plot.setInsets(new RectangleInsets(0, 5, 5, 5));
115c121
<             plot.setToolTipGenerator(new StandardPieItemLabelGenerator());
---
>             plot.setToolTipGenerator(new StandardPieToolTipGenerator());
124c130
<                       ChartUtilities.writeImageMap(pw, filename, info);
---
>                       ChartUtilities.writeImageMap(pw, filename, info, false);
186c192
<                       ChartUtilities.writeImageMap(pw, filename, info);
---
>                       ChartUtilities.writeImageMap(pw, filename, info, false);
271c277
<             ChartUtilities.writeImageMap(pw, filename, info);
---
>             ChartUtilities.writeImageMap(pw, filename, info, false);
Regards,
KL

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Wed Jul 19, 2006 4:55 pm

Thanks!
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

FahadJan
Posts: 3
Joined: Mon Aug 27, 2007 5:37 pm

Jfreechart War file problem

Post by FahadJan » Mon Aug 27, 2007 5:41 pm

Hi Richard,

The jfreechart war file is working fine, if i deploy it into tomcat. But i retrive the code and try to execute it using netbeans then everything works fine but i don't get the graph shown in the container. Could you please guide me in this regard?

Regards,
Fahad

Locked