WolfShade

No Data to display

Recommended Posts

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 by Guest

Share this post


Link to post
Share on other sites

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

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

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 by Guest

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now