draw « JFreeChart « JSP-Servlet Q&A





1. how to draw a barchart with jfreechart in a jsp file    jfree.org

how to draw a barchart with jfreechart in a jsp file by zhaoben Wed Sep 21, 2005 4:33 am my code is: nacl_zhuang@hotmail.com <%@ page contentType="text/html;charset=GBK"%> <%@ page import="org.jfree.chart.ChartFactory, org.jfree.chart.JFreeChart, org.jfree.chart.plot.PlotOrientation, org.jfree.chart.servlet.ServletUtilities, org.jfree.data.category.*"%> <% CategoryDataset dataset; String category=request.getParameter("category"); category= new String(category.getBytes("ISO8859_1"), "GBK"); if(category.equals("")||category.equals("")||category.equals("")) { dataset=getDataSet(); } else if(category.equals("")||category.equals("")) { dataset=getDataSet2(); }else { ...

2. JFreeChart for JSP pages to draw the Line Chart    jfree.org

i too want to do the same , but like to draw pie chart using data frm database........ u can use applet to draw chart , write applet class n use this class in jsp page via jsp plugin........ jsp code Using jsp:plugin

...