【发布时间】:2017-03-21 14:36:31
【问题描述】:
我正在使用 Fusion Chart Version2.2 for asp.net。当我安装 Flash 播放器时,网页运行良好。我可以在不安装此 Flash 播放器的情况下运行该应用程序吗?我正在使用 FusionCharts.js
<script type="text/javascript" language="JavaScript" src="FusionCharts/FusionCharts.js"></script>
我的代码在这里,
//strXML will be used to store the entire XML document generated
string strXML = null;
//Generate the graph element
strXML = @"<graph caption='" + strCaption + @"' subCaption='" + strSubCaption + @"' decimalPrecision='0' pieSliceDepth='30' formatNumberScale='0'
xAxisName='" + xAxis + @"' yAxisName='" + yAxis + @"' rotateNames='1'>";
int i = 0;
foreach (DataRow dr2 in dt.Rows)
{
strXML += "<set name='" + dr2[0].ToString() + "' value='" + dr2[1].ToString() + "' color='" + color[i] + @"' link="JavaScript:myJS('" + dr2["month"].ToString() + ", " + dr2["sales"].ToString() + "'); "/>";
i++;
}
//Finally, close <graph> element
strXML += "</graph>";
FCLiteral1.Text = FusionCharts.RenderChartHTML(
"FusionCharts/FCF_Column3D.swf", // Path to chart's SWF
"", // Leave blank when using Data String method
strXML, // xmlStr contains the chart data
"mygraph1", // Unique chart ID
GraphWidth, GraphHeight, // Width & Height of chart
false
);
我可以使用相同的version2.2还是需要升级版本?
【问题讨论】:
标签: asp.net fusioncharts