File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 11
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: 39547
    
  27
One of my favorite questions :-) Check out the cewolf tag library (see the link in my signature).


Ping & DNS - updated with new look and Ping home screen widget
Mahmood Ali
Greenhorn

Joined: Aug 04, 2010
Posts: 11
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: 39547
    
  27
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: 11
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: 39547
    
  27
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: 8898

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: 39547
    
  27
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to create charts in my jsp using the Database values
 
Similar Threads
Charts or Graphs in Jsp
The chart problem
How to read Data From Excel File Using servlets,jsp
jsp email
How to link JFreeChart with JSP