⏱️ 1 minute read
Advanced Analytics supports custom widget scripts, enabling you to tailor the look, feel, and behaviour of your reports - for example: changing colours, adding tooltips, or highlighting specific data.
What are Widget Scripts?
Widget scripts are small snippets of JavaScript code that run when an individual widget is rendered. These scripts let you go beyond standard configuration options. They can be used to:
- Customize visual styles (colours, fonts, borders)
- Add logic (conditional formatting, thresholds)
- Add interactivity (tooltips, links, click events)
- Enhance user experience (auto-refresh, custom labels, animations)
Adding a Widget Script
- In your widget, click the ellipsis icon (⋮) in the top right.
- Select Edit Script.
- Paste your JavaScript code and click Save.
- Refresh the widget page to see the changes.
To be able to add/edit widget scripts, you must have Designer permissions and be the dashboard owner.
Note: If you wish to create your own scripts, familiarity with JavaScript is recommended. Help with writing custom scripts is not in the scope of Forecast Support. More info for developers here.
Examples
Here is a list of ready-to-use Widget Scripts. These scripts are for table and chart widgets only.
Comments
0 comments
Please sign in to leave a comment.