【发布时间】:2017-02-24 21:11:59
【问题描述】:
我有以下代码将谷歌表格图表中的所有系列更改为虚线:
function changeChart() {
var sheet = SpreadsheetApp.getActiveSheet();
var chart = sheet.getCharts()[0];
chart = chart.modify()
.setOption('lineDashStyle', [4,4])
.build();
sheet.updateChart(chart);
}
我只想修改图表中的一个系列。有谁知道如何只选择一个系列进行修改?
【问题讨论】:
标签: google-apps-script google-sheets-api