Is there a way to extract the alt text of a Google Sheet Chart in Apps Script?
function extractAltText() {
var chart = SpreadsheetApp.getActiveSheet().getCharts()[0]
var chartOptions = chart.getOptions()
var altText = chartOptions.get("altText") //What I'm trying to figure out
console.log(altText)
}
The above code doesn't work. It returns Null even though I have alt text on the chart[0].
I've looked through all of the documentation, but I can't seem to find a way.
I know that there's a method of extracting the alt text of a chart in Google Slides, but I'm specifically looking for a solution for a Google Sheet chart.
References/Documention: