WolfShade Report post Posted May 7, 2009 (edited) Hello, all. I'm about to pull my hair out; I can feel the ulcers starting. I'm getting the "No Data to display" error, I'll include the code I'm using: <script type="text/javascript"> var myChart = new FusionCharts("fcharts/Pie3D.swf", "ChartReport", "500", "250", "0", "0"); myChart.setDataXML("<chart palette='4' animation='1' showZeroPies='1' showPercentValues='1' showPercentInToolTip='1' showLabels='1' showValues='1' defaultAnimation='0'> <set label='Cat A' value='$1.59' /> <set label='Cat B' value='$6.15' /> <set label='Cat C' value='$8.17' /> <set label='Cat D' value='$5.00' /> <set label='Cat E' value='$2.81' /> <set label='Cat F' value='$1.00' /> <set label='Cat G' value='$8.39' /> </chart>"); myChart.render("chartDisplay");</script> Am I missing something totally simple? Am I going to want to hit myself if you tell me what's wrong? Apache running under Windows Server 2003 SP2, if that helps. Thanks, Edited May 7, 2009 by Guest Share this post Link to post Share on other sites
srividya_sharma Report post Posted May 7, 2009 Hi In the line, " myChart.setDataXML", the xml provided to this function as parameter cannot contain newline characters. Please remove the newline or indentation characters and try. Hope this works for you. regards srividya Share this post Link to post Share on other sites
WolfShade Report post Posted May 8, 2009 I put those there so the message wouldn't strech the screen forcing a horizontal scrollbar to appear in the browser; it's actually all on one line. Thanks, Share this post Link to post Share on other sites
srividya_sharma Report post Posted May 8, 2009 (edited) Hi The value attribute should only contain a number. Please remove the $ symbol from it. For example, <set label='Cat A' value='$1.59' /> Should be changed to <set label='Cat A' value='1.59' /> Please make this change for all the values. To get the $ prefix in the chart, use the chart attribute numberPrefix='$' as shown below: <chart palette='4' numberPrefix='$' animation='1' showZeroPies='1' showPercentValues='0' showPercentInToolTip='1' showLabels='1' showValues='1' defaultAnimation='0'> Please refer to the following documentation pages for more clarity: http://www.fusioncharts.com/Docs/Contents/SingleSeries.html and http://www.fusioncharts.com/Docs/Contents/ChartSS/Pie3D.html Hope this solves the issue! Edited May 8, 2009 by Guest Share this post Link to post Share on other sites