下载官网的针对asp.net结合数据库实例   按照的实例的写法 跟着写了一次,但是未发现效果 ,在跟踪调试了一下
发现读取到数据库数据,并且返回了类似xml格式的字符串,
返回的主要函数:
    public string GetInventoryChartHtml()
    {
        StringBuilder chartBuilder = new StringBuilder();        chartBuilder.Append("<chart caption='Inventory by Product Categories' subcaption='(Click on a category to see product-wise details)' PYAxisName='Cost of Inventory' SYAxisName='Units in Inventory' xAxisName='Product Category' palette='" + Functions.GetPalette() + "' animation='" + Functions.GetAnimationState() + "' showValues='0' formatNumberScale='0' numberPrefix='$' labelDisplay='STAGGER' seriesNameInToolTip='0'>");
        chartBuilder.Append(FunctionsOne.GetXML(true, false)); //此处就是得到返回的xml字符串
        //  添加一些样式增加标题字体大小
        chartBuilder.Append("<styles><definition><style type='font' name='CaptionFont' size='15' color='" + Functions.getCaptionFontColor + "' /><style type='font' name='SubCaptionFont' bold='0' /></definition><application><apply toObject='caption' styles='CaptionFont' /><apply toObject='SubCaption' styles='SubCaptionFont' /></application></styles>");
        chartBuilder.Append("</chart>");        return FusionCharts.RenderChart("App/FusionCharts/MSColumn3DLineDY.swf", "", chartBuilder.ToString(), "ByCategory", "800", "300", false, false);    } 这个是对应的swf文件路径 但运行后显示的效果 是这样的:请问哪位高手有清楚这块,指点指点  谢谢了  

解决方案 »

  1.   

    首先 页面引用fustioncharts 的js了吗…… 
    如果还是没有数据,就可能是xml的问题  
      

  2.   

    引用了  在网上也找相关问题的答案  可能是xml中有中文 但是我把数据库的数据都改成英文了啊  而且数据也能读取出来  但也没就显示  Invalid xml Data这个结果  很郁闷啊 纠结很久了