You can use the group function to sum columns in your DataTable, and then insert that total into your heading:
// group the data table to get the sum of column 1
var group = google.visualization.data.group(data, [{
column: 0,
type: 'number',
// modify column 0 to return the same for all rows
// so we can get the sum of everything in column 1
modifier: function () {
return 0;
}
}], [{
// get the sum of column 1
column: 1,
type: 'number',
aggregation: google.visualization.data.sum
}]);
var sum = group.getValue(0, 1);
// put the sum wherever you need it