Google Apps Script: Popup not showing up when clicking on chart

44 views
Skip to first unread message

Meir Horwitz

unread,
Aug 24, 2023, 7:29:10 PM8/24/23
to Google Apps Script Community
I am trying to create a popup in Google Sheets that shows a chart in a larger size when I click on it. I have tried the following code, but the popup is not showing up: function onChartClick(e) { var chart = e.chart; var chartImage = chart.getImage(); var popup = SpreadsheetApp.newPopup(); popup.setWidth(chartImage.getWidth()); popup.setHeight(chartImage.getHeight()); popup.setTitle('Chart'); popup.addImage(chartImage); popup.show();

}

I tried multiple different approaches, and I am lost. Is there a smooth way of doing that?

Thanks!

cwl...@gmail.com

unread,
Sep 2, 2023, 10:21:31 PM9/2/23
to Google Apps Script Community
I think it can be done, but there is no easy way to do it.
Reply all
Reply to author
Forward
0 new messages