<%@ 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">2d柱型+区域+线条(双轴数据)图表</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/MSCombiDY2D.swf", "ChartId", "600", "360", "0", "0");
		   //chart.setDataURL("Data/Combi2DDY.xml");//直接调用xml文件

                   var xml="<chart baseFont='宋体' baseFontSize='14'  palette='2' caption='XXXX公司产品销售情况' subCaption='XXXX年' showValues='0' divLineDecimalPrecision='1' limitsDecimalPrecision='1' PYAxisName='Amount' SYAxisName='Quantity'  formatNumberScale='0'>";
                   xml=xml+"<categories>";
                   xml=xml+"<category label='产品A' />";
                   xml=xml+"<category label='产品B' />";
                   xml=xml+"<category label='产品C' />";
                   xml=xml+"<category label='产品D' />";
                   xml=xml+"<category label='产品E' />";
                   xml=xml+"<category label='产品F' />";
                   xml=xml+"<category label='产品G' />";
                   xml=xml+"<category label='产品H' />";
                   xml=xml+"<category label='产品I' />";
                   xml=xml+"<category label='产品J' />";
                   xml=xml+"</categories>";

                   xml=xml+"<dataset seriesName='销售额'>";
                   xml=xml+"<set value='5854' />";
                   xml=xml+"<set value='4171' />";
                   xml=xml+"<set value='1375' />";
                   xml=xml+"<set value='1875' />";
                   xml=xml+"<set value='2246' />";
                   xml=xml+"<set value='2696' />";
                   xml=xml+"<set value='1287' />";
                   xml=xml+"<set value='2140' />";
                   xml=xml+"<set value='1603' />";
                   xml=xml+"<set value='1628' />";
                   xml=xml+"</dataset>";
                   xml=xml+"<dataset seriesName='利润' renderAs='Area' parentYAxis='P'>";
                   xml=xml+"<set value='3242' />";
                   xml=xml+"<set value='3171' />";
                   xml=xml+"<set value='700' />";
                   xml=xml+"<set value='1287' />";
                   xml=xml+"<set value='1856' />";
                   xml=xml+"<set value='1126' />";
                   xml=xml+"<set value='987' />";
                   xml=xml+"<set value='1610' />";
                   xml=xml+"<set value='903' />";
                   xml=xml+"<set value='928' />";
                   xml=xml+"</dataset>";

                   xml=xml+"<dataset lineThickness='3' seriesName='数量' parentYAxis='S'>";
                   xml=xml+"<set value='174' />";
                   xml=xml+"<set value='197' />";
                   xml=xml+"<set value='155' />";
                   xml=xml+"<set value='15' />";
                   xml=xml+"<set value='66' />";
                   xml=xml+"<set value='85' />";
                   xml=xml+"<set value='37' />";
                   xml=xml+"<set value='10' />";
                   xml=xml+"<set value='44' />";
                   xml=xml+"<set value='322' />";
                   xml=xml+"</dataset>";
                   xml=xml+"</chart>";


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

</table>
</body>
</html>
