<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%> <%@ taglib uri="http://www.fusioncharts.com/jsp/core" prefix="fc"%> <%-- In this example, we show a combination of database + JavaScript (dataURL method) rendering using FusionCharts. The entire app (page) can be summarized as under. This app shows the break-down of factory wise output generated. In a pie chart, we first show the sum of quantity generated by each factory. These pie slices, when clicked would show detailed date-wise output of that factory. The detailed data would be dynamically pulled by the column chart from another JSP page. There are no page refreshes required. Everything is done on one single page. The XML data for the pie chart is fully created in JSP at run-time. JSP interacts with the database and creates the XML for this. Now, for the column chart (date-wise output report), each time we need the data we dynamically submit request to the server with the appropriate factoryId. The server responds with an XML document, which we accept and update chart at client side. --%> <%-- Create the chart - Pie 3D Chart with data contained in bean --%>

<%-- Column 2D Chart with changed "No data to display" message We initialize the chart with --%>