Using Google Script to

13 views
Skip to first unread message

Patrick Dufresne

unread,
Mar 6, 2018, 7:14:23 PM3/6/18
to Google Visualization API
I have the following Script:

 var chart4 = sheet.newChart()
     .setChartType(Charts.ChartType.LINE)
     .addRange(sheet.getRange("A1:G100"))
     .setOption('title','Page and Session RPM by Site')
     .setOption('aggregationTarget', 'category')
     .setOption('legend',{position:'bottom'})
     .setPosition(1, 1, 0, 0)
     .build();


But by default, it doesn't check the "Use row 1 as headers" option, how can I set this using google script?


Reply all
Reply to author
Forward
0 new messages