<%@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='Split of Visitors by Age Group' subcaption='Last year' enablesmartlabels='0' startingangle='0' showpercentvalues='1' decimals='1' usedataplotcolorforlabels='1' theme='fusion'><set label='Teenage' value='1250400' /><set label='Adult' value='1463300' /><set label='Mid-age' value='1050700' /><set label='Senior' value='491000' /></chart>";
%>
<table width="100%" border="0">
<tr><td>
<table width="100%" border="0">
<tr><td align="center">
<yfc:YFCSingleSeriesChartTag xmlData="<%=xmlValue%>" chartType="3D_Pie_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_Pie_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_Pie_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='Split of Visitors by Age Group' subcaption='Last year' enablesmartlabels='0' startingangle='0' showpercentvalues='1' decimals='1' usedataplotcolorforlabels='1' theme='fusion'><set label='Teenage' value='1250400' /><set label='Adult' value='1463300' /><set label='Mid-age' value='1050700' /><set label='Senior' value='491000' /></chart>";
%>
<table width="100%" border="0">
<tr><td>
<table width="100%" border="0">
<tr><td align="center">
<yfc:YFCSingleSeriesChartTag xmlData="<%=xmlValue%>" chartType="3D_Pie_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_Pie_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_Pie_Chart Sample Data
No comments:
Post a Comment