Chartjs-How to convert json array to object then chartjs

0👍

var org = [["2022-12-11 16:45:00",0.491],["2022-12-11 17:00:00",0.464]];

var data = org.map(v=>{
  return {x:v[0],y:v[1]}
})
console.log(data)

Leave a comment