• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create charts in my jsp using the Database values

 
Mahmood Ali
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of my favorite questions :-) Check out the cewolf tag library (see the link in my signature).
 
Mahmood Ali
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry to say that I downloaded it and I did not capture anything.

Are there any applets or easier methods?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic