This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Extend DataTable functionality to include toCSV | |
google.visualization.DataTable.prototype.toCSV = function () { | |
var dt_cols = this.getNumberOfColumns(); | |
var dt_rows = this.getNumberOfRows(); | |
var csv_cols = []; | |
var csv_out; | |
// Iterate columns | |
for (var i=0; i<dt_cols; i++) { |