Rename a script
When you add a script action to a data visualization, the script is automatically named script 1, script 2, and so on. This article shows you how to rename these script actions to something more descriptive using the Layers window.
2. Add a script
For this example, first add a chart visualization to your dashboard.
Go to Properties and add a script for the chart's Click event.
3. Rename the script action
Go to the Layers window and click the layer containing the chart.
Click the plus sign to see the list of elements within the layer.
Right-click over the layer node and select Refresh. This ensures the list of elements is up-to-date and includes the script you just added.
Expand the layer node and the chart node. You should see a script node listed as well.
Right-click over the script node and select Rename.
Enter the new name for the script in the text box.
Go back to the Script Editor to see that the script has been renamed.
4. See also