You can get the chart as an image and embed it in the message
Simple example
function sendChart(){
var dataTable = SpreadsheetApp.getActiveSpreadsheet()
.getDataRange()
.getDataTable(true);
var chartImage = Charts.newPieChart()
.setTitle('Title')
.setDataTable(dataTable)
.build()
.getAs('image/jpeg');
MailApp.sendEmail({
to: "example@example.com",
subject: "Chart",
htmlBody: "Chart! <br> <img src='cid:chartImg'> ! <br> Wow",
inlineImages: {
chartImg: chartImage,
}
});
}
I hope this helps =)
source
share