Sign in to follow this  
learning FC

Setjsondata Or Set Setjsonurl

Recommended Posts

HI, I need to know

instead of giving a file name to setJSONUrl or data itself with setJSONData function ,

can we pass a object that contains the data for chart creation and with which function?

because i have to modify my json data according the format required by fusion charts.

Please Help!

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

I am afraid, you can provide data to the chart either in XML/JSON string or can provide XML/JSON file URL only.

 

So, you would need to convert your JSON data as per the FusionCharts JSON data format and then provide as string or pass the URL.

 

For more information on "Providing and Updating Chart Data", please follow the link below:

http://docs.fusioncharts.com/charts/contents/?JavaScript/JS_ChangeData.html

 

Hope this helps!

Share this post


Link to post
Share on other sites

Thanks , It worked , i passed the variable with setJSONData and it worked :)

Hi,

 

I am afraid, you can provide data to the chart either in XML/JSON string or can provide XML/JSON file URL only.

 

So, you would need to convert your JSON data as per the FusionCharts JSON data format and then provide as string or pass the URL.

 

For more information on "Providing and Updating Chart Data", please follow the link below:

http://docs.fusionch...ChangeData.html

 

Hope this helps!

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