Use getData instead of setDataAtCel

Tags: #<Tag:0x00007efc64743008>

in github issues someone mentioned to use getData()[][] instead of setDataAtCel cuz it triggers render everytime you call it.

	d3.csvParse(reader.result, function(data){
            for(var hi = 0 ; hi < headers.length; hi++){
                      // hot.setDataAtCell(column,hi,data[headers[hi]]);  //this works as expected but takes about 2-3min
                      
                        hot.getData()[hi][column] = data[headers[hi]];
                        console.log( hot.getData()[hi][column]);           // goes from null to undefined!
                        console.log( data[headers[hi]]);                   // correct value
            }
             column++;
         }

the problem is this doesnt change the array just makes it undefined!
im confused. whats the problem?

hi @decapitary
I think that it may be the loadData() method. I’m not sure if we are talking about the same case but the loadData() can change even the whole table at once and setDataAtCell works only for a single cell.