Sign in to follow this  
Adrian Serafin

No Data To Display

Recommended Posts

Hi!

 

I'm new to FusionCharts and I have problems with displaying simple line chart. In web browser I see "No data to display".

 

Here's my js code:

 

var chart_order_id=new  FusionCharts('/FusionCharts/FCF_MSLine.swf','order_id',300,400,1,1); <!-- Provide entire  XML data using DataXML method -->
chart_order_id.setDataXML('<chart>  <set value="1"  label="2"/>  <set value="1" label="3"/>  <set value="3"  label="4"/>  <set value="2" label="5"/>  <set value="4"  label="6"/>  <set value="7" label="7"/>  <set value="1"  label="8"/>  <set value="3" label="9"/>  <set value="2"  label="10"/></chart>'); <!-- Finally render  the chart. --> chart_order_id.render('order_idDiv'); 

 

And here's html generated by it:

 

<embed height="400" width="300" flashvars="chartWidth=300&chartHeight=400&debugMode=1&DOMId=order_id&registerWithJS=1&scaleMode=noScale&lang=EN&dataXML=<chart>  <set value='1' label='2'/>  <set value='1' label='3'/>  <set value='3' label='4'/>  <set value='2' label='5'/>  <set value='4' label='6'/>  <set value='7' label='7'/>  <set value='1' label='8'/>  <set value='3' label='9'/>  <set value='2' label='10'/></chart>" allowscriptaccess="always" quality="high" name="order_id" id="order_id" src="/FusionCharts/FCF_MSLine.swf" type="application/x-shockwave-flash">

 

The result I get from ii is "No data to display".

 

If someone can show me what I'm doing wrong I will be very gratefull.

 

Adrian

Share this post


Link to post
Share on other sites
Guest Angie

Hi Adrian,

Welcome to FusionCharts Forum!smile.gif

You are using a Multi-series chart SWF and providing data in a Single-series format or vice-versa. Please read more on the data formats acceptable by FusionCharts at:

http://www.fusioncharts.com/docs/?DataFormats/XML/Overview.html

For this reason, you'll get an error message as "No Data to Display". More information on this at:

http://www.fusioncharts.com/docs/?Debug/Basic.html

Hope this helps.smile.gif Awaiting for your reply.

 

Share this post


Link to post
Share on other sites

Hi Adrian,

 

Welcome to FusionCharts Forum!smile.gif

 

You are using a Multi-series chart SWF and providing data in a Single-series format or vice-versa. Please read more on the data formats acceptable by FusionCharts at:

http://www.fusioncha...L/Overview.html

For this reason, you'll get an error message as "No Data to Display". More information on this at:

http://www.fusioncha...ebug/Basic.html

 

Hope this helps.smile.gif Awaiting for your reply.

 

 

 

 

Hi!

 

Thank's for quick response. I changed chart swf file to this: /FusionCharts/FCF_Line.swf but still getting No data to display message.

Share this post


Link to post
Share on other sites
Guest Angie

Hi Adrian,

Could you please enable the debugMode to "1" and send us the screenshot to look into the issue?

ex: var myChart = new FusionCharts("../FusionCharts/FCF_Line.swf","myChartId", "400", "300", "1", "1");

Awaiting for your reply.

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
Sign in to follow this