getChartData() {
const { schoolId } = this.chartParams
this.getEquCountAndType({ schoolId }).then(res => {
console.log(res) // {"DV86-LA":7,"55X":1,"DV75-LA":1}
this.chartData = Object.entries(res).map(([name, value]) => ({
name,
value,
}))
console.log(this.chartData) // [{name: "DV86-LA"value: 7}, {name: "DV75-LA"value: 1}, {name: "DV75-LA"value: 1}]
})
},