I am looking to create multiple pie charts dynamically and display them together on a webpage. The number of pie charts needed will be determined by the elements in a JSON object. Here is an example of how the data will be structured:
[
{
"id" : "123",
"data" : [20, 40, 10, 20, 10]
},
{
"id" : "456",
"data" : [10, 20, 20, 30, 20]
},
{
"id" : "789",
"data" : [25, 35, 5, 10, 25]
}
]
My goal is to have a pie chart for each element that contains both 'id' and 'data' attributes. The 'data' values will be used as dataPoints in the pie charts for their corresponding 'id'. How can I go about achieving this?