【问题标题】:Fusion Chart Without Flash Player没有 Flash Player 的融合图表
【发布时间】: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=&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还是需要升级版本?

【问题讨论】:

    标签: asp.net fusioncharts


    【解决方案1】:

    您正在使用已弃用的基于 Flash 的版本。尝试使用FusionCharts升级版,确保生成的xml结构符合FusionCharts规定格式。

    同时您可以查看详细的博客,其中展示了如何从 VB.NET http://www.fusioncharts.com/blog/2017/02/rendering-fusioncharts-vb-net-using-database/ 的数据库中呈现 FusionCharts 支持的图表@

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-12-08
    • 2021-11-10
    相关资源
    最近更新 更多