There is a specific array of 'data' of 20 lines
var data = [['classique'], ['City'], ['Radouga'], ['Hypermarche'], ['Atak'], ['U. Proximite'], ['Proximite'], ['Auchan Retail Russie'], ['Total'],['classique'], ['City'], ['Radouga'], ['Hypermarche'], ['Atak'], ['U. Proximite'], ['Proximite'], ['Specialise'], ['Ecommerce'], ['Auchan Retail Russie']]; And there is an array with the data 'gridData', too, out of 20 lines, I iterate over it and add it to the 'data' array. They are added as more array lines.
var data = [['classique'], ['City'], ['Radouga'], ['Hypermarche'], ['Atak'], ['U. Proximite'], ['Proximite'], ['Auchan Retail Russie'], ['Total'],['classique'], ['City'], ['Radouga'], ['Hypermarche'], ['Atak'], ['U. Proximite'], ['Proximite'], ['Specialise'], ['Ecommerce'], ['Auchan Retail Russie']]; for(var i = 0; i < this.gridData.length; i++) { data[i].push(this.gridData[i].data); How to make the first line of 'gridData' added to the first line of 'data', the second line of 'gridData' to the second 'data', and so on. right now the array is done like this = data = [comparable [values gridData'0 ']], [classique [values gridData'1']], etc. I need to like this [comporable, values gidData'0 '], [classicue, values gridData'1 '] etc
data, the variable isthis.gridData. And sample output. That is, that in the end should be in the variabledata- Grundy