<%@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='Monthly revenue for last year' subcaption='Harrys SuperMart' xaxisname='Month' yaxisname='Revenues (In USD)' theme='fusion'><set label='Jan' value='420000' /><set label='Feb' value='810000' /><set label='Mar' value='720000' /><set label='Apr' value='550000' /><set label='May' value='910000' /><set label='Jun' value='510000' /><set label='Jul' value='680000' /><set label='Aug' value='620000' /><set label='Sep' value='610000' /><set label='Oct' value='490000' /><set label='Nov' value='900000' /><set label='Dec' value='730000' /></chart>";
%>
<table width="100%" border="0">
<tr><td>
<table width="100%" border="0">
<tr><td align="center">
<yfc:YFCSingleSeriesChartTag xmlData="<%=xmlValue%>" chartType="3D_Column_Chart" width="500" height="400" debugMode="N" />
</td></tr>
</table>
</td></tr>
</table>
</body>
</html>
Note:
1. YFCSingleSeriesChartTag - This is for Single 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='Monthly revenue for last year' subcaption='Harrys SuperMart' xaxisname='Month' yaxisname='Revenues (In USD)' theme='fusion'><set label='Jan' value='420000' /><set label='Feb' value='810000' /><set label='Mar' value='720000' /><set label='Apr' value='550000' /><set label='May' value='910000' /><set label='Jun' value='510000' /><set label='Jul' value='680000' /><set label='Aug' value='620000' /><set label='Sep' value='610000' /><set label='Oct' value='490000' /><set label='Nov' value='900000' /><set label='Dec' value='730000' /></chart>";
%>
<table width="100%" border="0">
<tr><td>
<table width="100%" border="0">
<tr><td align="center">
<yfc:YFCSingleSeriesChartTag xmlData="<%=xmlValue%>" chartType="3D_Column_Chart" width="500" height="400" debugMode="N" />
</td></tr>
</table>
</td></tr>
</table>
</body>
</html>
Note:
1. YFCSingleSeriesChartTag - This is for Single 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