<%@ Page Language="C#" AutoEventWireup="True" Inherits="TitleApp.Web.Manager.Module.TitleApp.AnalysisPic.Default" Title="无标题页" Codebehind="Default.aspx.cs" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
<script type="text/javascript" src="FusionCharts/FusionCharts.js"></script>
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Literal ID="Literal1" runat="server"></asp:Literal>
</div>
</form>
</body>
</html>using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;using InfoSoftGlobal;public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
this.Literal1.Text = CreatYearChart();
}
public string CreatYearChart()
{
string Year = System.DateTime.Now.Year.ToString();
string[] Col = new string[] { "AFD8F8", "F6BD0F", "8BBA00", "008E8E" };
string strXML;
//strXML = "";
//strXML += "<graph caption='近5年申报人数对比' xAxisName='测试' yAxisName='还是测试' decimalPrecision='0' formatNumberScale='0'>";
//for (int i = 1; i < 4; i++)
//{
// int Y=int.Parse(Year)-i;
// string Sql = string.Format("select * from Title_ApplyerInfo where year(DateCreate)='{0}'", Y);
// string Result = string.Format("<set name='{0}' value='{1}' color='{2}'/>", Y, cs.ReturnDataSet(Sql).Tables[0].Rows.Count, Col[i]);
// strXML += Result;
//} // strXML += "</graph>";
strXML = "";
strXML += "<graph caption='这是测试' xAxisName='测试' yAxisName='还是测试' decimalPrecision='0' formatNumberScale='0'>";
strXML += "<set name='李海龙' value='462' color='AFD8F8' />";
strXML += "<set name='王越' value='857' color='F6BD0F' />";
strXML += "<set name='张静' value='671' color='8BBA00' />";
strXML += "<set name='料晕' value='494' color='FF8E46'/>";
strXML += "<set name='无敌' value='761' color='008E8E'/>";
strXML += "<set name='张小下' value='960' color='D64646'/>";
strXML += "</graph>";
return FusionCharts.RenderChart("FusionCharts/Pie3D.swf", "", strXML, "myNext", "600", "300", false, false);
}}
我引用什么都添加了,这段代码在我新建的空网站中可以生成图表,但是在我新加入到已存在的网站上为什么输出的是Chart. 哪位指导下我到底怎么使用哇。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货