function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
himanshu Soni 31himanshu Soni 31 

how can we make pie chart of rest api json data in lightning component?

weno bakweno bak
Hi, my family member! I wish to say that this article is amazing, great written and come with approximately all important information. I would like to look more posts like this. If you are interested in gaming stuff then please visit my website gtacheatcode.com or you also click here for Latest GTA Cheats PC for all GTA's version (https://gtacheatcode.com/gta-cheats-pc/).
Christan G 4Christan G 4
Hi Himanshu, I hope you are well. Unfortunately, I researched and saw that there aren't any base LWC that supports creating charts. With that being said, I think you can achieve this through the use of HTML and javascript. I found an article regarding this which may be helpful: https://www.anychart.com/blog/2017/12/06/pie-chart-create-javascript/

With regards to the REST API, you can make the callout and store the retrieved JSON response. Then you can pass along its attributes.

Honestly, this looks like it would be a fun project to work on. I may actually try creating my own version of this. I hope the info I provided helps!