0👍
In case you are looking to process this in vuejs, the bellow snippet should work
var data = [
[
{
"yearMonth": "January",
"sessions": 1192908,
"users": 808010
},
{
"yearMonth": "February",
"sessions": 2084625,
"users": 1566430
},
{
"yearMonth": "March",
"sessions": 1864468,
"users": 1417904
}
]
];
const processData = array => ({
label: array.map(i=>i.yearMonth),
sessions: array.map(i=>i.sessions),
users: array.map(i=>i.users)
});
console.log(processData(data[0]));
Source:stackexchange.com