Turning on chart level scripting
By default, chart level scripting is disabled in apps. You can turn it on in app details.
Do the following:
-
In your app, click the app name in the navigation bar.
-
In the app details area, click .
-
Turn on Chart scripting.