Complete the code to insert a chart from Sheets into a Google Doc.
InsertChart = DocsApp.getActiveDocument().getBody().append[1](chart);The method insertChart is used to add a chart object to the body of a Google Doc.
Complete the code to link a chart from Sheets into Slides so it updates automatically.
slide.insertSheetsChartAsImage(sheetChart).[1](true);The method setLinkToSpreadsheet(true) links the inserted chart image to the original spreadsheet so it updates automatically.
Fix the error in the code to update a linked chart in Slides.
var charts = slide.getSheetsCharts(); charts[0].[1]();
The correct method to update a linked Sheets chart in Slides is update().
Fill both blanks to create and insert a chart from Sheets into Slides with a link.
var chart = sheet.getCharts()[0]; var image = slide.insertSheetsChartAsImage(chart).[1]([2]);
Use setLinkToSpreadsheet(true) to insert the chart image linked to the spreadsheet.
Fill all three blanks to insert a chart into a Google Doc and update it later.
var chart = sheet.getCharts()[[1]]; var docChart = doc.getBody().append[2](chart); docChart.[3]();
Use index 0 to get the first chart, insertChart to add it to the doc, and update() to refresh it later.