Sign in to follow this  

setDataURL method does not refresh data

Recommended Posts


When we use the setDataURL method  (..Column3d.swf?dataURL=Newdata.xml) and have acquired some problems where we see that the new data is loaded but the bar graphics are not redrawn after we send the new data. In other words, after we reload the data (using ..Column3d.swf?dataURL=Newdata.xml) the data labels are refreshed correctly, but the column bars are not redrawn. This did not work for us both in Flex and plain HTML page.


We also examined the HTML/Javascript example application in the documentation in ...JavaScriptBasicsChangeDataURL.html, and are getting the JS exception "Object doesn't support this property or method" line 21.

We tried this on several different machines and browsers.





Share this post

Link to post
Share on other sites

If you're getting an error that setDataURL/setDataXML is not a function of the chart object, please make sure of the following:

1. Please make sure that you're using FusionCharts v3 charts, as the JavaScript API was introduced in this version. To check whether you're using v3, just match your SWF name with the names listed at

2. Please ensure that you've set registerWithJS flag to 1. For more information on how to do this, please see Basically, you need to set the last parameter in the following code to 1:

var chart1 = new FusionCharts("FusionCharts/Column3D.swf", "chart1Id", "400", "300", "0", "1");

3. Please make sure that you're not placing the chart inside a FORM element. When the chart is inside a FORM element, the browser cannot access the chart using DOM.

4. Please make sure that you're not calling the setDataURL/setDataXML method before the chart has loaded and rendered. You need to use FC_Rendered function of chart to track the loading of chart as explained at The page's body onLoad event would NOT work, as the chart starts loading after the body has finished loading.

5. Please make sure that you're NOT running the chart from local file system (C: , D:). Instead, run the chart from behind a server (localhost - IIS, Apache etc.). This is because the Flash Player security settings do not allow Chart to JavaScript interaction, unless otherwise specifically set.

Share this post

Link to post
Share on other sites

Hi Pallav,

I have managed to fix this in IE6 and IE7 by upgrading the flash plugin (minor update 9.02 to 9.04).

How ever the same solution does not work for FireFox.

For your information I attached the DEBUG output in FireFox.

I am guessing this is a plugin issue.

Thanks very much,



Info: Chart loaded and initialized.

Initial Width: 1000

Initial Height: 900

Scale Mode: noScale

Debug Mode: Yes

Application Message Language: EN

Version: 3.0.3

Chart Type: Single Series 3D Column Chart

Chart Objects:
















INFO: XML Data provided using dataURL method.

dataURL provided: Data1.xml

dataURL invoked: Data1.xml

XML Data: <chart caption="Monthly Sales Summary" subcaption="For the year 2006" xAxisName="Month" yAxisName="Sales" numberPrefix="$"><set label="January" value="18400" /><set label="February" value="23800" /><set label="March" value="25800" /><set label="April" value="23800" /><set label="May" value="29600" /><set label="June" value="34600" /><set label="July" value="36800" /><set label="August" value="29700" /><set label="September" value="17800" /><set label="October" value="23900" /><set label="November" value="22900" /><set label="December" value="17800" /></chart>

Share this post

Link to post
Share on other sites
Guest Rajroop

Hello :),




We are really excited to announce the release of FusionCharts for Flex v1.1 featuring the following:




- 12 new chart types: 7 new gauges including Angular gauge, LED gauge and Linear gauge, Spark chart and Bullet graphs have been added.


- All the gauges can fetch data in real-time and come with alert managers and message loggers.


- All the charts and gauges can now be natively exported as images and PDFs.


- The data for all the charts can be exported as CSV.


- Data sets can now have custom text labels instead of numeric values.


- The charts can handle a lot more events to help you manipulate them better.


- Trendlines can also have custom tool-text.


- Custom color palettes can be defined for the data plots.




Learn more about it from and learn more on whats new from




Existing customers can upgrade to the new version from

Share this post

Link to post
Share on other sites

SWF Optimizer is such a software that mainly purpose for Flash Compressor, its mainly function is to compress swf with output




quality lossless (up to 70% quality of the original swf video quality).




* Suport compress SWF to EXE or EXE to SWF


* Support SWF Vector, font, morphing, picture, audio/video compression, and AS script optimization.


* both intelligent optimization and advanced manual optimization supported.








Here is more useful and professional swf converter help you convert flv to swf


and show you tutorial steps of how to convert swf to video .

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