How to Dynamically Change Text in a Widget Title Using Dashboard Parameters
You can dynamically change the text in a widget title using dashboard parameter. This can be achieved using label parameter support. Follow the steps below to customize the text in a widget:
-
Edit data source and create dashboard parameter: Start by editing the data source and creating a dashboard parameter. For example, we have created a dashboard parameter as shown below.
-
Open expression popup: Click the “Expression” icon in the toolbar to open the expression popup.
-
Bind the created expression: Bind the created expression in the widget you want to customize. Then edit the widget title and use the label parameter with the expression you created.
{{:Expression1}}
-
Preview the dashboard: Preview the dashboard, and the parameter name will be reflected in the widget title. The title will also update when you change the dashboard parameter value.
For a demonstration of this process, you can refer to the following video: Customizing Text in a Widget Using Dashboard Parameters