如何通过Google脚本设置“图表汇总”设置

时间:2020-02-04 09:27:14

标签: google-apps-script google-visualization

我正在使用Google脚本将图表添加到Google表格

var chart = sheet.newChart()
.setChartType(Charts.ChartType.BAR)
.addRange(sheetdata.getRange("E2:E99"))
.setPosition(5, 5, 0, 0)
.setOption("title", "Leads")
.build();

sheet.insertChart(chart);

Aggragate Aggragate

如何设置Google脚本中的汇总。我看过Doco,但看不到它。

欢迎提出任何想法。

1 个答案:

答案 0 :(得分:1)

这对我有用,只需将其添加到您的图表中

.setOption('applyAggregateData',0)

相关问题