<%@ page contentType="text/html;charset=GBK" %>
<head>
<title></title>
<script language="JavaScript" src="../JSClass/FusionCharts.js"></script>
</head>

<table width="100%">
<tr>
<td><label class="title">多系列线条图表</label></td>
<% String file=request.getServletPath().substring(1);
   String app=request.getContextPath();
%>
<td><label class="title">url：<%=file%></label></td>
<td align="right" valign="bottom" nowrap>&nbsp;[<a href="src.jsp?target=<%=file%>" target="source">源代码</a>]&nbsp;&nbsp;[<a target="_blank" href="parameter.htm"><font size="3">使用帮助</font></a>]</td>
</tr>
</table>
<hr>
<body bgcolor="#EDF3FF">
<table width="98%" border="0" cellspacing="0" cellpadding="3" align="center">
  <tr>
    <td valign="top" class="text" align="center"> <div id="chartdiv" align="center">
        webchart </div>
      <script type="text/javascript">
		   var chart = new FusionCharts("../flashchart/MSLine.swf", "ChartId", "600", "380", "0", "0");
		   //chart.setDataURL("Data/MSLine.xml");//直接调用xml文件
                   var xml="<chart   baseFont='宋体' baseFontSize='14'  caption='火车客运量分析(万人次)' subcaption='(从2010-10-01至2010-10-07)' lineThickness='1' showValues='0' formatNumberScale='0' anchorRadius='2'   divLineAlpha='20' divLineColor='BC3300' divLineIsDashed='1' showAlternateHGridColor='1' alternateHGridAlpha='5' alternateHGridColor='CC3300' shadowAlpha='40' labelStep='2' numvdivlines='5' chartRightMargin='35' bgColor='FFFFFF,BC3300' bgAngle='270' bgAlpha='10,10'>";
                   xml=xml+"<categories >";
                   xml=xml+"<category label='1号' />";
                   xml=xml+"<category label='2号' />";
                   xml=xml+"<category label='3号' />";
                   xml=xml+"<category label='4号' />";
                   xml=xml+"<category label='5号' />";
                   xml=xml+"<category label='6号' />";
                   xml=xml+"<category label='7号' />";
                   xml=xml+"</categories>";
                   xml=xml+"<dataset seriesName='北京' color='1D8BD1' anchorBorderColor='1D8BD1' anchorBgColor='1D8BD1'>";
                   xml=xml+"<set value='60' />";
                   xml=xml+"<set value='55' />";
                   xml=xml+"<set value='45' />";
                   xml=xml+"<set value='50' />";
                   xml=xml+"<set value='51' />";
                   xml=xml+"<set value='57' />";
                   xml=xml+"<set value='55' />";
                   xml=xml+"</dataset>";

                   xml=xml+"<dataset seriesName='上海' color='F1683C' anchorBorderColor='F1683C' anchorBgColor='F1683C'>";
                   xml=xml+"<set value='60' />";
                   xml=xml+"<set value='45' />";
                   xml=xml+"<set value='56' />";
                   xml=xml+"<set value='66' />";
                   xml=xml+"<set value='65' />";
                   xml=xml+"<set value='34' />";
                   xml=xml+"<set value='45' />";
                   xml=xml+"</dataset>";

                   xml=xml+"<dataset seriesName='贵阳' color='2AD62A' anchorBorderColor='2AD62A' anchorBgColor='2AD62A'>";
                   xml=xml+"<set value='20' />";
                   xml=xml+"<set value='23' />";
                   xml=xml+"<set value='36' />";
                   xml=xml+"<set value='48' />";
                   xml=xml+"<set value='32' />";
                   xml=xml+"<set value='38' />";
                   xml=xml+"<set value='25' />";
                   xml=xml+"</dataset>";

                   xml=xml+"<dataset seriesName='成都' color='DBDC25' anchorBorderColor='DBDC25' anchorBgColor='DBDC25'>";
                   xml=xml+"<set value='44' />";
                   xml=xml+"<set value='54' />";
                   xml=xml+"<set value='58' />";
                   xml=xml+"<set value='33' />";
                   xml=xml+"<set value='39' />";
                   xml=xml+"<set value='55' />";
                   xml=xml+"<set value='27' />";
                   xml=xml+"</dataset>";
                   xml=xml+"<styles>";
                   xml=xml+"<definition>";
                   //可以用如下方式
                   xml=xml+"<style name='CaptionFont' type='font'  baseFont='宋体' size='20'/>";
                   xml=xml+"</definition>";
                   xml=xml+"<application>";
                   xml=xml+"<apply toObject='CAPTION' styles='CaptionFont' />";
                   xml=xml+"<apply toObject='SUBCAPTION' styles='CaptionFont' />";
                   xml=xml+"</application>";
                   xml=xml+"</styles>";

                   xml=xml+"</chart>";

                   chart.setDataXML(xml);
		   chart.render("chartdiv");
		</script> </td>
  </tr>
</table>
</body>
</html>
