Your code is not really clear. What are you trying to push into your array ? Right if you have three columns (ID, Title, Amount) and 3 rows in your list, then your array will look like this
[0] = 1; // ID
[1] = "Some stuff"; // Title
[2] = 25; // amount
[3] = 2; // ID
[4] = "Something"; // Title
[5] = 15; // Amount
[6] = 3; // ID
[7] = "Something else"; // Title
[8] = 36; // Amount
I don't think it makes really sense, doesn't it? Maybe you want to have 1 row = 1 row. So the array will look like this:
[0][0] = 1;
[0][1] = "Some stuff"; // Title
[0][2] = 25; // amount
[1][0] = 2; // ID
[1][1] = "Something"; // Title
[1][2] = 15; // Amount
[2][0] = 3; // ID
[2][1] = "Something else"; // Title
[2][2] = 36; // Amount
If it's the case, your loop will be like that :
var myArray1=[],j=0;
while (listItemEnumerator.moveNext()) {
var oListItem = listItemEnumerator.get_current();
myArray1[j]=[];
for (var i = 1; i<column1Titles.length;i++){
myArray1[j].push(oListItem.get_item(column1Titles[i]));
}
}
BTW, the Microsoft API is so bad to use ^^ I created an API : http://aymkdn.github.io/SharepointPlus/ easy to use. Your code will look like that with my library :
$SP().list("list_name").get({fields:column1Titles, rowlimit:"200", where:"ID >= 1"}, function(data) {
var myArray1=[];
for (var i=0, len=data.length; i < len; i++) {
myArray1[i]=[];
for (var c=0; c < column1Titles.length; c++)
myArray1[i].push(data[i].getAttribute(column1Titles[c]));
}
Graph("holder", global1[1], "High Risk Project", global1[2], "Yes");
})