Sign in to follow this  

There is no method with the name 'setXMLData'

Recommended Posts

I am using the new V3 of the charts (very nice by the way). I upgraded my V2 developer addition and things were going rather well. Then for no apparent reason, I can no longer compile. I keep getting "There is no method with the name 'setXMLData'". I am positive nothing is missing in my includes. I even copied and pasted example code from the help file and I keep getting this. The com folder is located in the same root as the .fla.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Please help, I am going nuts trying to figure this out. (P.S I can take the same code/fla and compile it on a different computer. I am running Flash Pro 8 on both machines.)

Thanks in advance.


Share this post

Link to post
Share on other sites

Are you just plain recompiling v3 charts or using FusionCharts inside your Flash movies?

If it's the former case, can you try clearing the ASO cache and then recompile?

Share this post

Link to post
Share on other sites





I have the same problem with Spline2DChart class. In the same movie using SparkLineChart class, which is working fine and Spline2DChart with error "There is no method with the name 'setXMLData'. chart2.setXMLData (channelChartXML);"


com directory is in root of my fla file and all paths for import are ok. It is very important for me to finish this job ASAP but on this issue I've spend all day....


even this simply code returns error :




#include "com/fusioncharts/includes/"


#include "com/fusioncharts/includes/"


import com.fusioncharts.core.charts.Spline2DChart;




var strXML1:String ="";
















var xmlData1:XML = new XML(strXML1);




var ccote:MovieClip=this.createEmptyMovieClip("mov",1);


var chart2:Spline2DChart = new Spline2DChart (ccote, 2, chaW, 300, 5, 5, false, "EN","noScale");


chart2.setXMLData (xmlData1);


chart2.render ();








Any advice?






Moved step forward .... and debug mode giving me following data:




Info: Chart loaded and initialized.


Initial Width: 521.9


Initial Height: 300


Scale Mode: noScale


Debug Mode: Yes


Application Message Language: EN


Version: 3.1.1


Chart Type: Single Series 2D Spline Chart


Chart Objects:












































XML Data:
























No Data to Display: No data was found in the XML data document provided. Possible cases can be:


There isn't any data generated by your system. If your system generates data based on parameters passed to it using dataURL, please make sure dataURL is URL Encoded.


You might be using a Single Series Chart .swf file instead of Multi-series .swf file and providing multi-series data or vice-versa.

Edited by Guest

Share this post

Link to post
Share on other sites
Guest Angie

Dear User,


We are delighted to announce that PowerCharts is now ready for your iPads and iPhones too. We have just released PowerCharts v3.2. Starting v3.2, PowerCharts has HighCharts embedded within it, and offers both Flash and JavaScript (HTML5) charting . The Flash charts are displayed on a majority of devices and the JavaScript charts on devices that do not support Flash, all of it without writing a line of code.


Automatic rendering of JavaScript charts on devices (like iPad and iPhone) where Flash player is not supported.


5 new chart types:


Heat Map Chart


Box and Whisker Chart


Step Line Chart


Error Line Chart


Error Scatter Chart



* Support for JSON data format.


* Support for LinkedCharts, where a single data source controls multiple charts.


* Interactive legends in charts allow selective showing/hiding of data series.


* Legends now support icons for each data series.


* Better management of labels on charts.


* Labels now have an auto rendering mode to prevent them from overlapping, the chart selects the best display mode depending on the length of the labels and the width of the chart.


* Long labels are truncated, with ellipses appended to the truncated end of each label, and a tooltip bearing the completed label text is displayed when the user hovers over a truncated label.


* Support for line breaks and wrapping in all text elements including: caption, sub caption, X-axis title, Y-axis title, Labels and tooltips.


* In Line charts, data values can now be positioned either above or below the dataplots. Automatic positioning of data values is also supported.


* In Step-line charts dataplots can be joined using vertical lines.


* Custom alignment of caption and sub caption using STYLES.


* Advanced print management using JavaScript.


* Additional options for efficient event handling using JavaScript.


* Support for dynamic update of chart properties using JavaScript(barring select scatter and drag charts).


* Charts now support % based sizes along with dynamic resizing (barring select scatter and drag charts).



Learn more about everything new in PowerCharts v3.2 at : http:/


We would love to hear from you at:

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