Created
May 3, 2011 15:52
-
-
Save juven/953596 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var data = response.getDataTable(); | |
// coz google does not support 'total', so we calculate it here make it show different | |
var total = 0; | |
for ( var i = 0; i < data.getNumberOfRows(); i++ ) { | |
total = total + data.getValue(i, 1); | |
} | |
data.addRow([ | |
{v: 'Grand Total', p: {style: 'font-weight: bold;'} }, | |
{v: total, p: {style: 'font-weight: bold;'}} | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment