[Chartjs]-Charts.js: Using an object to graph

1👍

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

Leave a comment