I am using JSP with Springframework, and i have to generate Graphs ( Bar , Pie ... ). Is there any free library/api which can be used to achieve this?
views:
122answers:
5JFreeChart is arguably the best one for server-side chart generation
JFreeChart has some alternatives like JChart or the one mentioned in its FAQ but there is no real competition.
More recently, I've discovered charts4j, an API on top of Google Charts API that hides the ugly details of creating the URL (you use its Java API to generate the URL). It looks nice if you want to use Google Charts (which might not be an option at all).
JFreeChart is a great API.
You can also create scalable vector graphics (SVG) using Apache Batiks. SVG Graphics are XML Based and are computed through mathematical equations (vs. pixel representation of raster graphics) and these graphics are highly scalable without losing the quality.
See Batiks Website: http://xmlgraphics.apache.org/batik/