I would like to build several charts using the Sheets advanced service (I'm not so sure but I think this service gives access to the API the same way it can be used from external languages).
I see that the the first example on this page
Charts looks like
{
"requests": [
{
"addChart": {
...
}
]
}
I believe the requests can contain several addChart as well as other "entities".
For the time being, I got it working with only one entity (TypeScript syntax).
var request : GoogleAppsScript.Sheets.Schema.Request = Sheets.newRequest();
request = {
'addChart': {
..
}
};
var batchUpdateRequest : GoogleAppsScript.Sheets.Schema.BatchUpdateSpreadsheetRequest = Sheets.newBatchUpdateSpreadsheetRequest();
batchUpdateRequest.requests = request; // claps underlines this instruction..
return batchUpdateRequest;
I can't find find type which can handle multiple requests (i.e. for the first part of code) and I don't think that GoogleAppsScript.Sheets.Schema.BatchUpdateValuesRequest will help.
Does anyone have an idea how to achieve it?
Thanks for any insights :-)