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)
Source:stackexchange.com
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)