I have the following code:
var optionsChart = {
data: [{
type: "bla",
dataPoints: [{
x: 1,
y: 3
}, {
x: 1,
y: 2
}, {
x: 3,
y: 4
}]
},
etc...
}
Now I tried to generate the Datas in the dataPoints field dynamically. I have an Array like this:
dataArray = [[1,3], [1,2],[3,4]];
I try to insert his after dataPoints, but when doing this it needs to be exactly like in the code above, but I don't know how to do that.
Any suggestions here? Thank you very much!