Forums Register Login

Pie Charts inJSP

+Pie Number of slices to send: Send
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!
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
This is awkward. I've grown a second evil head. I'm going to need a machete and a tiny ad ...
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1314 times.
Similar Threads
Eval() inJSP
Servlets inJSP
Generate pie charts throug jsp
Dynamic addition of items to combo inJSP
How to catch errors inJSP
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:55:27.