0👍
Seems like you are setting the values in each for loop, instead of adding them to a array. The upcoming for loops won’t loop like you expect since it only contains one item.
var labelNames = [];
var labelValues = [];
for (var i in dataGraph3) {
labelNames.push(Object.keys(dataGraph3[i]));
labelValues.push(Object.values(dataGraph3[i]));
}
Source:stackexchange.com