I have a slide with an embedded chart from a sheets document. I'm updating the data for the sheet, and then sending a refresh to the sheet-chart and it's not working. When I open the slides document I can see the chart in that doc is updated, but only when I click on the Update button does it refresh:
My code to update the sheet data:
var values = [[ date, value ]];
var range = sheet.getRange("A"+rowIndex+":B"+rowIndex);
range.setValues(values);
rowIndex++;
My code to refresh:
jsonItem['slideIndex'] is a relative pointer to which slide I'm working on.
Deck.getSlides()[jsonItem['slideIndex']].getSheetsCharts().forEach(function(c){c.refresh();});
As you can see I'm using a nuclear option here, I'm iterating through all SheetsCharts on my slide and refreshing every single one, and I can't seem to make it work.