I have the following array:
const dataArr = [[15, 14, 5], [16, 10, 2], [17, 6, 13], [18, 4, 8], [19, 7, 4]];
Now, I am populating another array using the above data as shown below:
for (let i=0; i<dataArr.length; i++){
newData.push(dataArr[i]);
Then, I want to create a bubble chart using this array but it doesn't seem to work. Here is what I tried:
series: [{
data: [
for(let i=0; i<newData.length; i++){
{ x: newData[i][0], y: newData[i][1], z: newData[i][2] }
}
]
}]
However, this approach is not yielding the desired result. Can someone suggest a way to achieve this?