Sign in to follow this  
Scrubles

Get CSV Data

Recommended Posts

So, I was trying to use the getDataAsCSV() function from the 'instance-getDataAsCSV.html' I downloaded,but it doesn't work, when I go to the console it doesn't even appear as option to use, then I tried on this http://docs.fusioncharts.com/charts/Code/JavaScript/Basics/Functions/instance-getDataAsCSV.html, and it seems to be working fine. When I compared the myChart objects I got this:

 

Mine


a.core {__stateObjectid"myChartId"argsObjectoptionsObjectattributesObject}
  1. __stateObject

  2. addVariablefunction (){a.raiseWarning(this,"1012141919","run","FlashRenderer~addVariable()",'Use of deprecated "addVariable()". Replace with "configure()".');a.core.prototype.configure.apply(this,arguments)}

  3. argsObject

  4. attributesObject

  5. flashVarsObject

  6. getSWFHTMLfunction (){var a=g.createElement("span"),b=g.createElement("span"),c="RnVzaW9uQ2hhcnRz"+(new Date).getTime();a.appendChild((B);b.setAttribute("id",c);a.style.display="none";g.getElementsByTagName("body")[0].appendChild(a);f.swfobject.embedSWF(this.src,c,this.width,this.height,"8.0.0",void 0,this.flashVars,this.params,this.attrs);

  7. height"300"

  8. id"myChartId"

  9. linkh

  10. optionsObject

  11. paramsObject

  12. refobject#myChartId.FusionCharts

  13. registerObjectfunction (){}

  14. setDataURLfunction ((B){a.raiseWarning(this,"11033001082","run","GenericRuntime~setDataURL()",'Use of deprecated "setDataURL()". Replace with "setXMLUrl()".');

  15. setDataXMLfunction ((B){a.raiseWarning(this,

  16. setTransparentfunction (a){typeof a!=="boolean"&&a!==null&&(a=!0);this.params.wMode=a===null?"window":a===!0?"transparent":"opaque"}

  17. src"../../../../Charts/Column3D.swf"

  18. width"400"

  19. __proto__Object

 

From the Site


a.core {__stateObjectid"myChartId"argsObjectoptionsObjectattributesObject}
  1. __stateObject

  2. addVariablefunction (){a.raiseWarning(this,"1012141919","run","FlashRenderer~addVariable()",'Use of deprecated "addVariable()". Replace with "configure()".');a.core.prototype.configure.apply(this,arguments)}

  3. argsObject

  4. attributesObject

  5. cancelExportfunction (){if(this.ref===void 0||this.ref===null||typeof this.ref!=="function")a.raiseError(this,"25081617","run","~"+b+"()","ExternalInterface call failed. Check whether chart has been rendered.");else return this.ref.apply(this.ref,arguments)}

exportChartfunction (){if(this.ref===void 0||this.ref===null||typeof this.ref!=="function")a.raiseError(this,"25081617","run","~"+b+"()","ExternalInterface call failed. Check whether chart has been rendered.");else return this.ref.apply(this.ref,arguments)}
flashVarsObject
getDataAsCSVfunction (){if(this.ref===void 0||this.ref===null||typeof this.ref!=="function")a.raiseError(this,"25081617","run","~"+b+"()","ExternalInterface call failed. Check whether chart has been rendered.");else return this.ref.apply(this.ref,arguments)}
getSWFHTMLfunction (){var a=g.createElement("span"),b=g.createElement("span"),c="RnVzaW9uQ2hhcnRz"+(new Date).getTime();a.appendChild((B);b.setAttribute("id",c);a.style.display="none";g.getElementsByTagName("body")[0].appendChild(a);f.swfobject.embedSWF(this.src,c,this.width,this.height,"8.0.0",void 0,this.flashVars,this.params,this.attrs);
getXMLfunction (){if(this.ref===void 0||this.ref===null||typeof this.ref!=="function")a.raiseError(this,"25081617","run","~"+b+"()","ExternalInterface call failed. Check whether chart has been rendered.");else return this.ref.apply(this.ref,arguments)}
hasRenderedfunction (){if(this.ref===void 0||this.ref===null||typeof this.ref!=="function")a.raiseError(this,"25081617","run","~"+b+"()","ExternalInterface call failed. Check whether chart has been rendered.");else return this.ref.apply(this.ref,arguments)}
height"300"
id"myChartId"
linkh
optionsObject
paramsObject
printfunction (){if(this.ref===void 0||this.ref===null||typeof this.ref!=="function")a.raiseError(this,"25081617","run","~"+b+"()","ExternalInterface call failed. Check whether chart has been rendered.");else return this.ref.apply(this.ref,arguments)}
refobject#myChartId.FusionCharts
registerObjectfunction (){}
saveAsImagefunction (){if(this.ref===void 0||this.ref===null||typeof this.ref!=="function")a.raiseError(this,"25081617","run","~"+b+"()","ExternalInterface call failed. Check whether chart has been rendered.");else return this.ref.apply(this.ref,arguments)}
setDataURLfunction ((B){a.raiseWarning(this,"11033001082","run","GenericRuntime~setDataURL()",'Use of deprecated "setDataURL()". Replace with "setXMLUrl()".');
setDataXMLfunction ((B){a.raiseWarning(this,
setTransparentfunction (a){typeof a!=="boolean"&&a!==null&&(a=!0);this.params.wMode=a===null?"window":a===!0?"transparent":"opaque"}
signaturefunction (){if(this.ref===void 0||this.ref===null||typeof this.ref!=="function")a.raiseError(this,"25081617","run","~"+b+"()","ExternalInterface call failed. Check whether chart has been rendered.");else return this.ref.apply(this.ref,arguments)}
src"../../../../Charts/Column3D.swf"
width"400"
__proto__Object

 

Could it be because mine is trial and I can't access those functions? I would also like to use the exportChart, if someone can help or explains, thanks.

 

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

Could you please let us know the version of FusionCharts XT you are using at your end? to know the version details, please open the "FusionCharts.js" file in any if the text editor and see first few commented lines.

 

However, please note that there is no feature limitation in the Evaluation/Trial version of FusionCharts Suite XT, except for the fact that the evaluation version charts are watermarked.

 

Awaiting your valuable response.

Share this post


Link to post
Share on other sites
 FusionCharts JavaScript Library

 Copyright FusionCharts Technologies LLP

 License Information at <http://www.fusioncharts.com/license>

 

 @version fusioncharts/3.3.1-sr3.21100

 

 @attributions (infers respective third-party copyrights)

 Raphael 2.1.0 (modified as "Red Raphael") <http://raphaeljs.com/license.html>

 SWFObject v2.2 (modified) <http://code.google.com/p/swfobject/>


 jQuery 1.8.3 <http://jquery.com/>

 Firebug Lite 1.3.0 <http://getfirebug.com/firebuglite>

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

I am afraid, we are able to get the CSV data using "getDataAsCSV()" method with the same version that you are using.

 

Please find the attached screen shot of the same for your reference.

post-23588-0-55113900-1401438827_thumb.png

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