var data = google.visualization.arrayToDataTable([
['Year', 'Oil', 'Cost', 'Barrel'],
['2004', 1000, 400, 710],
['2005', 1170, 460, 850],
['2006', 660, 1120, 620]
]);
I have the above example, but say I want to add ['2007', 1030, 540, 740] to the end of that outside of the above?
I tried the following but it comes up with push is not a function
setTimeout(function(){
data.push(['2007', 1030, 540, 740]);
chart.draw(data, options);
}, 1000);