Saturday, June 22, 2019

Fusion Chart - IBM Sterling WMS - 2D_Line_Chart

<%@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='Total footfall in Bakersfield Central' subcaption='Last week' xaxisname='Day' yaxisname='No. of Visitors' linethickness='2' theme='fusion'><set label='Mon' value='15123' /><set label='Tue' value='14233' /><set label='Wed' value='23507' /><set label='Thu' value='9110' /><set label='Fri' value='15529' /><set label='Sat' value='20803' /><set label='Sun' value='19202' /><trendlines><line startvalue='18500' color='#1aaf5d' displayvalue='Average\n weekly\n footfall' valueonright='1' thickness='2' /></trendlines></chart>";
%>
<table width="100%" border="0">
<tr><td>
<table width="100%" border="0">
<tr><td align="center">
<yfc:YFCSingleSeriesChartTag xmlData="<%=xmlValue%>" chartType="2D_Line_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 - 2D_Line_Chart
4. width - Width of the Chart
5. height - Height of the Chart
6. debugMode - N is default.  Y - enable debug mode

Sample Data:
2D_Line_Chart Sample Data


No comments:

Post a Comment

Popular Posts