wood burning stoves*
The moose likes Other Open Source Projects and the fly likes How to create charts in my jsp using the Database values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How to create charts in my jsp using the Database values" Watch "How to create charts in my jsp using the Database values" New topic
Author

How to create charts in my jsp using the Database values

Mahmood Ali
Greenhorn

Joined: Aug 04, 2010
Posts: 16
Hello All,

I would like to know how to create charts and bars in my jsp using the DB values.

Can you please guide me to a useful tool and if there are any lessons that would be helpful.

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42273
    
  64
One of my favorite questions :-) Check out the cewolf tag library (see the link in my signature).


Ping & DNS - my free Android networking tools app
Mahmood Ali
Greenhorn

Joined: Aug 04, 2010
Posts: 16
Hello,

I have downloaded the jfreecharts, but I did not understand anything.

I also tried to search for lessons with regard how to use it in my jsp, I found some of the topics, but still I can't figure out.

Can you please help

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42273
    
  64
To get started with cewolf -which is different from JFreeChart-, work through the tutorial at http://cewolf.sourceforge.net/new/. You'll also want to download the cewolf example web app, drop that in a servlet container, and check out its various pages and their respective JSP code.
Mahmood Ali
Greenhorn

Joined: Aug 04, 2010
Posts: 16
Sorry to say that I downloaded it and I did not capture anything.

Are there any applets or easier methods?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42273
    
  64
Did you read through the tutorial? It's only 5 (short) pages.

Did you get the example web app to run? It includes the example chart from the tutorial so that you can play around with it yourself (as well as numerous other examples).
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Ulf,

cewolf tag library , does it only work with JSPs ? That is what I think from the intro page. Can it be used in applets or swing based app?


Groovy
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42273
    
  64
No, it's a JSP tag library. In AWT/Swing code you can use the JFreeChart API directly via the ChartFrame and ChartPanel classes. See http://faq.javaranch.com/java/JFreeChartDemo for an example.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create charts in my jsp using the Database values