Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
The following example shows how to use the Chart.getWorksheet() property. The code first prints the name of the worksheet, then accesses the first chart on the worksheet. It then prints the worksheet name again, using the Chart.getWorksheet() property.
Below is the console output the sample code results in. As you can see, it prints the same worksheet name both times.
Sheet Name: Portfolio
Chart's Sheet Name: PortfolioAnalyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.