2017-03-16 56 views
0

我對asp.net使用的是Fusion Chart Version2.2。當我安裝Flash Player時,網頁運行良好。我可以在不安裝此Flash Player的情況下運行應用程序嗎?我使用FusionCharts.js沒有Flash Player的融合圖表

<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=&quot;JavaScript:myJS('" + dr2["month"].ToString() + ", " + dr2["sales"].ToString() + "'); &quot;/>"; 
     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或需要升級的版本?

回答

2

您正在使用基於閃存的版本,這已被棄用。嘗試使用FusionCharts升級版本,並確保生成的xml結構符合FusionCharts規定的格式。

同時,你可以查看詳細的博客,展示如何通過呈現FusionCharts的支持圖表從數據庫VB.NET http://www.fusioncharts.com/blog/2017/02/rendering-fusioncharts-vb-net-using-database/

+0

http://www.fusioncharts.com/download/free/是該庫有幫助嗎?它對生命有效嗎? – user2431727

+0

試用或評估版本是免費的我猜想,但對於生產我想你需要購買許可證。你可以查看http://www.fusioncharts.com/buy/ –