Dealing with a graphics library has presented a challenge as it struggles to handle the data format returned by the API I am utilizing. The issue lies in the fact that the chart lib does not support the structure of data from the api.
API response
const data = [
{
"house01": {
"free": 6
},
"house02": {
"free": 2
},
"house03": {
"free": 1
},
}
]
Expected (UPDATED)
const data = [
{
"label": "house01"
"free": 6
},
{
"label": "house02"
"free": 2
},
{
"label": "house03"
"free": 1
},
]