A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
gschrade
- Posts: 11
- Joined: Tue Oct 16, 2007 6:38 pm
Post
by gschrade » Tue Nov 13, 2007 10:46 pm
I just purchased the documentation. In the documentation there is a demo. I opened one of the html files and it lists the title, but there is no chart under it. Anyone know how this is supposed to work?
Thanks in advance.
-
joolz
- Posts: 56
- Joined: Thu Nov 17, 2005 2:38 am
- Location: Australia
Post
by joolz » Tue Nov 13, 2007 11:01 pm
Do you mean a html file in \jfreechart-1.0.6-demo\source\demo? The html files in that directory don't display any images, they are used for javadocs.
To see the sample charts, double click jfreechart-1.0.6-demo.jar (or right click -> Open With -> Java SE Platform Binary)
-
gschrade
- Posts: 11
- Joined: Tue Oct 16, 2007 6:38 pm
Post
by gschrade » Tue Nov 13, 2007 11:10 pm
Thanks, that explains that, but I was hoping to see how to dynamically create a chart and pass it to a jsp. Is there an example of that in the documentation?
Thanks again in advance.
-
joolz
- Posts: 56
- Joined: Thu Nov 17, 2005 2:38 am
- Location: Australia
Post
by joolz » Tue Nov 13, 2007 11:16 pm
If you want to use jsp, you will need to use servlets to generate the images. Chapter 19 in the documentation talks about how to do this, and there is some sample files in the servlets directory of the demo.
-
gschrade
- Posts: 11
- Joined: Tue Oct 16, 2007 6:38 pm
Post
by gschrade » Wed Nov 14, 2007 1:01 am
There are no servlet examples in the servlet directory--just two html files and a web.xml file.
-
joolz
- Posts: 56
- Joined: Thu Nov 17, 2005 2:38 am
- Location: Australia
Post
by joolz » Wed Nov 14, 2007 1:12 am
Those are the html files that reference the servlets. The servlet code files are ServletDemo1.java and ServletDemo2.java in the source\demo folder.
-
gschrade
- Posts: 11
- Joined: Tue Oct 16, 2007 6:38 pm
Post
by gschrade » Wed Nov 14, 2007 4:47 pm
Thank you for all your time and help
-
joolz
- Posts: 56
- Joined: Thu Nov 17, 2005 2:38 am
- Location: Australia
Post
by joolz » Wed Nov 14, 2007 10:56 pm
You're welcome