|
|
|
Forum 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
|
|
|
|
|
FusionCharts 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
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 8:31:36 AM
Posts: 763,
Visits: 1,214
|
|
|
|
|
|
Forum 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>
|
|
|
|
|
FusionCharts 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
|
|
|
|