I have below static array. But it is in static format. I am trying to create same things dynamically.
[
['', 'Kia', 'Nissan', 'Toyota', 'Honda', 'Mazda', 'Ford'],
['2012', 10, 11, 12, 13, 15, 16],
['2013', 10, 11, 12, 13, 15, 16],
['2014', 10, 11, 12, 13, 15, 16],
['2015', 10, 11, 12, 13, 15, 16],
['2016', 10, 11, 12, 13, 15, 16]
];
this.getDynamically = function(data) {
for(var i=0 ; i< data.count ;i++) {
// here this data will be create one by one row.
}
}