File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pie Charts inJSP

 
shruti lodha
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I need to make a Pie Chart in JSP without using any 3rd party softwares.
Can someone please help me out?
Also can sumone please suggest where can i find sample codes for the same.
Thanks in advance!
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

JSPs usually generate HTML, so you will have to make do with what HTML can do. That would either be embedded SVG (which severely limits your audience, as SVG is not widely supported by current browsers) or an embedded image.

Libraries like JFreeChart and the cewolf JSP tag library based on it (links can be found here) make it very easy to do this. Why don't you want to use those libraries? You'd just be duplicating work already done.
 
shruti lodha
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!!
But for using JFreeChart i will have to add external libraries to my code .Right?
I am not very sure if that is a possiblility.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes,

There is nothing built into JSP for generating pie charts so, as Ulf mentioned, you'll either need to write a lot of code that can generate images yourself or use third party libraries.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic