I have such an Object
freq = { a: 50, r: 25, m: 25 }
I want to convert it to this Array-Object like thing
dps = [
{ label: "a",
y: 50 },
{ label: "r",
y: 25 },
{ label: "m",
y: 25 }
];
This is for creating a Chart with canvas.