Json in Js | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Json in Js

i need to display a pie chart via javascript where data will be fetched from a json exposed service. can anyome give me any idea on this ?

10th Nov 2016, 9:04 PM
Rishabh Malhotra
Rishabh Malhotra - avatar
3 Answers
+ 1
I can recommend you follow the instructions in the documentation in for example chart.js or chartist.js. You can use jQuery with Ajax (and REST) in order to get the data from Json or JsonP format.
10th Nov 2016, 10:17 PM
Christian Ståhl
Christian Ståhl - avatar
0
thanks cronoik... this page looks good fr my requirement. I ll go through it and come back here if it works for me . Thanks !!
10th Nov 2016, 9:41 PM
Rishabh Malhotra
Rishabh Malhotra - avatar
0
this is using a file data.json ... however i want to use data which has been exposed from another system as a service ie : a web link to use data in our system
10th Nov 2016, 9:52 PM
Rishabh Malhotra
Rishabh Malhotra - avatar