[Chartjs]-Chart JS how to display an array of data objects as bar chart

1👍

After Vitaliy Rayets comment i figured out what was wrong

i needed to return the data row like:

let dataRow = this.responses.map((d) => {
  return {
    label: d.user.name,
    y: [d.grade],
  }
});

**I changed the property ‘data’ to ‘y’ **

Leave a comment