vishualhat

using different fieldnames instead of Label Value fields in JSon

Recommended Posts

I have converted my data in arraylist to Json using gson libraries.

Data I get from there in json is like :

 "data": [{"status":"Queued","count":"40"},{"status":"Registered","count":"25"}]

I want render bar chart from this data. can i change default Label and value to Status, count as per above data?

 

or is there any other solution??

 

 

Thanks...!

Share this post


Link to post
Share on other sites
Hi

 

You have to convert your data array to FusionCharts format, custom data fields cannot be used. For the use-case you described, you can specify "status" and "count" as y-axis and x-axis names respectively while for for value in status it, will go under label and value of count will go as value.

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