ravenkien

Setdataurl()

Recommended Posts

Hi,

Im new in Fusioncharts, can i pass the whole page into setDataUrl(); for example: SetDataUrl("data.aspx");??

 

*insde this data.aspx is a JSON format data. for example "data":[ { "label": "8001", "value": 1560 }, { "label": "8002", "value": 923 }]

 

 

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

 

Thank you for the post and interest in FusionCharts!!

 

 

Yes, you can pass the whole page into setDataUrl(); for example: SetDataUrl("data.aspx");

 

setDataURL() function helps in setting or updating chart XML data for chart from Url.

 

FusionCharts accepts data only in XML or JSON format and this function takes a URL as string.

 

 

So you can pass whole page to setDataURL() as URL string but sure that the page will give the data in XML or JSON format only.

 

 

For more on the JavaScript functions please visit: http://docs.fusionch...PI/Methods.html

Edited by Sashibhusan

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