FusionCharts Forum: Javascript setDataXML for MS charts - can't figure it out - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Javascript setDataXML for MS charts - can't figure it out

#1 User is offline   Steve Workings 

  • Forum Newbie
  • Group: Members
  • Posts: 2
  • Joined: 15-October 09

Posted 15 October 2009 - 05:40 PM

I'm using the Javascript method for charts, and dataXML. I have it working just fine for single-series charts. But I'm doing something wrong when it comes to multi-series charts. I've had good success with MS series charts as embedded objects, but can't seem to move them to the JS method.



To try to get things right, I borrowed an MS example from the FusionCharts documentation, and turned it into a single string for the XML. When I run it, I get a "No Data to Display." Anyone see why?



Here's the pertinent code:



The chart will appear within this DIV. This text will be replaced by the chart.






Thanks!
- Steve Workings
0

Other Replies To This Topic

#2 User is offline   Rajroop 

  • FusionCharts Team
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1803
  • Joined: 19-May 09

Posted 16 October 2009 - 04:26 AM

Helloo Steve,



Wlecome! :)



The following are the cases where the error: "No Data to Display." is shown.



If your chart shows a "No data to display" message, it could be the following scenarios:



1. Your XML data doesn't contain any data that could be plotted by FusionCharts. In this case, your XML just contains the or tags without any data between them.

2. You might be using a single-series chart SWF and providing data in multi-series format or vice-versa. In this case too, you'll get "No data to display" message.

3. In some Dual Y Combination charts, you need to provide atleast one data-set for both the axis. Otherwise, you'll get a "No data to display" message.



In this case, your issue could be classified to #2.



Could you please send us the generated XML so we may have a look at what may be causing this error?

Ref.- http://www.fusioncha...bug/window.html



I hope this helps. Looking forward to your reply. :D
Regards,

Rajroop Bhaduri

FusionCharts Team

Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Follow us @Twitter
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic