setDataURL method does not refresh data
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



setDataURL method does not refresh data Expand / Collapse
Author
Message
Posted 9/16/2007 3:16:45 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 9/19/2007 1:49:21 AM
Posts: 2, Visits: 5
Hi,
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 ...\JavaScript\Basics\ChangeDataURL.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.
 
Thanks,
Nathaniel
 
Post #2403
Posted 9/16/2007 5:34:50 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 7/29/2008 12:15:49 PM
Posts: 2,001, Visits: 474
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 http://www.fusioncharts.com/Docs/Contents/ChartList.html

2. Please ensure that you've set registerWithJS flag to 1. For more information on how to do this, please see http://www.fusioncharts.com/Docs/Contents/JS_Overview.html. 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 http://www.fusioncharts.com/Docs/Contents/JS_Overview.html. 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.

Thanks,
Pallav Nadhani
FusionCharts Team

Post #2421
Posted 9/17/2007 5:06:06 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 8:31:36 AM
Posts: 763, Visits: 1,214
Hi,

for setDataURL in JavaScript please try the sample given in the post :http://www.fusioncharts.com/forum/Topic1675-47-2.aspx#bm2429

Regards,

Sudipto Choudhury
FusionCharts Team

Post #2434
Posted 9/18/2007 9:54:09 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 9/19/2007 1:49:21 AM
Posts: 2, Visits: 5

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,

-nathaniel

DEBUG STACK:

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:

BACKGROUND

CANVAS

CAPTION

SUBCAPTION

YAXISNAME

XAXISNAME

DIVLINES

YAXISVALUES

DATALABELS

DATAVALUES

TRENDLINES

TRENDVALUES

DATAPLOT

TOOLTIP

VLINES

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>

Post #2445
Posted 9/19/2007 4:24:52 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 7/29/2008 12:15:49 PM
Posts: 2,001, Visits: 474
Hi,

As per the debug mode contents, your chart is not getting registered with JavaScript. Else, it would show a message in the debugger.

Thanks,
Pallav Nadhani
FusionCharts Team

Post #2456
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 3:04pm


Execution: 0.047.