Giving and Retrieving Parameters for Chart at GAS
This sample script is for retrieving parameters from a chart. The chart created by both Google Apps Script and manually operation can be used.
Creates Chart
When a chart is created, it supposes following parameters.
var parameters = {
"title": "x axis",
"fontName": "Arial",
"minValue": 0,
"maxValue": 100,
"titleTextStyle": {
"color": "#c0c0c0",
"fontSize": 10,
"fontName": "Roboto",
"italic": true,
"bold": false
}
};
.setOption('hAxis', parameters)
Retrieve Parameters From Chart
For the chart created by above parameters, in order to retrieve the parameters, it uses following script.