Adrian Serafin Report post Posted December 14, 2010 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®isterWithJS=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 Report post Posted December 14, 2010 Hi Adrian, Welcome to FusionCharts Forum! 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. Awaiting for your reply. Share this post Link to post Share on other sites
Adrian Serafin Report post Posted December 14, 2010 On 12/14/2010 at 11:33 AM, Angie said: Hi Adrian, Welcome to FusionCharts Forum! 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. 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 Report post Posted December 14, 2010 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
Adrian Serafin Report post Posted December 14, 2010 Hi! I send you screenshot of page with firebug html source. Share this post Link to post Share on other sites
Adrian Serafin Report post Posted December 15, 2010 On 12/14/2010 at 1:45 PM, Adrian Serafin said: Hi! I send you screenshot of page with firebug html source. Hi! Was the screen helpfull? Share this post Link to post Share on other sites