<%@page import="com.yantra.yfc.ui.backend.chart.*"%>
<%@page import="java.util.*"%>
<html>
<head>
<link type="text/css" href="<%=request.getContextPath()%>/css/sapphire.css" rel="stylesheet">
<title>Fusion Chart Tester</title>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<%
String xmlValue = "<chart caption='Harry SuperMart' subcaption='Sales by quarter' xaxisname='Quarter' yaxisname='Sales (In USD)' numberprefix='$' theme='fusion'><categories><category label='Q1' /><category label='Q2' /><category label='Q3' /><category label='Q4' /></categories><dataset seriesname='Previous Year'><set value='10000' /><set value='11500' /><set value='12500' /><set value='15000' /></dataset><dataset seriesname='Current Year'><set value='25400' /><set value='29800' /><set value='21800' /><set value='26800' /></dataset></chart>";
%>
<table width="100%" border="0">
<tr><td>
<table width="100%" border="0">
<tr><td align="center">
<yfc:YFCMultipleSeriesChartTag xmlData="<%=xmlValue%>" chartType="3D_Column_Chart" width="500" height="400" debugMode="N" />
</td></tr>
</table>
</td></tr>
</table>
</body>
</html>
Note:
1. YFCMultipleSeriesChartTag - This is for Multi Series Chart
2. xmlData - Pass complete XML input data
3. chartType - 3D_Column_Chart
4. width - Width of the Chart
5. height - Height of the Chart
6. debugMode - N is default. Y - enable debug mode
Sample Data:
3D_Column_Chart Sample Data
<%@page import="java.util.*"%>
<html>
<head>
<link type="text/css" href="<%=request.getContextPath()%>/css/sapphire.css" rel="stylesheet">
<title>Fusion Chart Tester</title>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<%
String xmlValue = "<chart caption='Harry SuperMart' subcaption='Sales by quarter' xaxisname='Quarter' yaxisname='Sales (In USD)' numberprefix='$' theme='fusion'><categories><category label='Q1' /><category label='Q2' /><category label='Q3' /><category label='Q4' /></categories><dataset seriesname='Previous Year'><set value='10000' /><set value='11500' /><set value='12500' /><set value='15000' /></dataset><dataset seriesname='Current Year'><set value='25400' /><set value='29800' /><set value='21800' /><set value='26800' /></dataset></chart>";
%>
<table width="100%" border="0">
<tr><td>
<table width="100%" border="0">
<tr><td align="center">
<yfc:YFCMultipleSeriesChartTag xmlData="<%=xmlValue%>" chartType="3D_Column_Chart" width="500" height="400" debugMode="N" />
</td></tr>
</table>
</td></tr>
</table>
</body>
</html>
Note:
1. YFCMultipleSeriesChartTag - This is for Multi Series Chart
2. xmlData - Pass complete XML input data
3. chartType - 3D_Column_Chart
4. width - Width of the Chart
5. height - Height of the Chart
6. debugMode - N is default. Y - enable debug mode
Sample Data:
3D_Column_Chart Sample Data
No comments:
Post a Comment