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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps Script Community
I think it can be done, but there is no easy way to do it.