New version of JFreeChart Sample WAR available
Re: I've got the JFreeChart JAR files in the WEB-INF/lib, bu
how to write jsp exception in log file
Re: New version of JFreeChart Sample WAR available
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
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
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
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
Re: about org.jfree
do u kno some punch linesalejo wrote:Hi everyone:
Im wondering if anyone of you know where can i get the java files of the org.jfree
thanks

When will it works with JFreeChart 1.0.1?
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.
Thanks.
Re: When will it works with JFreeChart 1.0.1?
You can download the updated web archive I've created: kimleng.goh.googlepages.com/jfreechart-sample.warkhanhtran 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.
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);
KL
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Thanks!
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Jfreechart War file problem
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
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