At first I could not find how to set the size of the inline chart.
The solution for this was setOption ('width', width) + setOption ('height', height)
Now I want to set the minimum and maximum values โโfor the vertical axis when creating the chart.
Google doc just says ...
setOption (name, value)
Sets advanced options for this chart. See https://developers.google.com/chart/interactive/docs/reference for options available.
... but I cannot find the available options there.
those. I am missing the setDimension (pixwidth, pixheight) method in EmbeddedChartBuilder ...
function addChart(dataSheetName) { var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheetByName('Graphs'); var dataSheet = SpreadsheetApp.getActive().getSheetByName(dataSheetName); var dataRange = dataSheet.getDataRange(); var chart = sheet.newChart() .setChartType(Charts.ChartType.LINE) .addRange(dataRange) .setPosition(5, 1, 0, 0)
source share