Apparently Google Docs is able to embed charts from Google Sheets (I mean "normal" range-based charts and not ones from Google Charts). So, if I change the chart colours for example, I can update these changes in Google Docs.
Unfortunately, Google Docs does not have script recorder features and it doesn't help when I record the copy / paste from Google Sheets (of course, I only intended to use the record feature for help).
I believe I should embed the chart as any object via its url (at least its id part). I'm aware of method such as appendImage()
(Body
class), but I cannot find equivalent for charts.
Can anyone give me some guidance using Google Apps Script (not from API)?
Link to the Google Docs reference
Thanks for any insights!