score:1

Accepted answer

you can get the object keys and values like so:

labels: object.keys(stategraphone),
datasets: [{
    label: '# of votes',
    data: object.values(stategraphone),
...

a quick search and... another answer


Related Query

More Query from same tag