首页 新闻 会员 周边 捐助

那位帮帮忙为什吗 fusionchars 做的统计只显示第一个而第二个不显示啊 急急急急急急

0
[已关闭问题] 关闭于 2013-07-04 14:14
protected void Page_Load(object sender, EventArgs e)
        {
            Literal2.Text = CreatChart();
            Literal1.Text = Creatpie();
        }

        public string CreatChart()
        {
            string strXML;
            strXML = "";
            strXML += "<graph caption='Unit Sales' xAxisName='Month' yAxisName='Units' showValues='1' decimals='0' formatNumberScale='0' useRoundEdges='1'>";
            strXML += "<set label='Jan' value='462'/>";
            strXML += "<set label='Feb' value='857'/>";
            strXML += "<set label='Mar' value='671'/>";
            strXML += "<set label='Apr' value='494'/>";
            strXML += "<set label='May' value='761'/>";
            strXML += "<set label='Jun' value='960'/>";
            strXML += "</graph>";
            return FusionCharts.RenderChart("FusionCharts/Column2D.swf", "", strXML, "myNext", "600", "300", false, false);
        }

        public string Creatpie()
        {
            string strXML;
            strXML = "";
            strXML += "<graph caption='Unit Sales' xAxisName='Month' yAxisName='Units' showValues='1' decimals='0' formatNumberScale='0' useRoundEdges='1'>";
            strXML += "<set label='Jan' value='450'/>";
            strXML += "<set label='Feb' value='800'/>";
            strXML += "<set label='Mar' value='654'/>";
            strXML += "<set label='Apr' value='400'/>";
            strXML += "<set label='May' value='750'/>";
            strXML += "<set label='Jun' value='100'/>";
            strXML += "</graph>";
            return FusionCharts.RenderChart("FusionCharts/Column2D.swf", "", strXML, "myNext", "600", "300", false, false);
        } 
    }


代码上

c#
yujinchao的主页 yujinchao | 菜鸟二级 | 园豆:248
提问于:2013-04-22 14:27
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册