View Variables¶
View variables play a key role in dynamic visual data analysis. They allow users to update visualization results in real-time by changing the value of one or more view variables, thereby dynamically filtering and analyzing data according to their needs.
Start Adding¶
- Variable Name: The name of the current view variable set. When adding charts to the dashboard, it needs to be referenced in the chart query in the format:
#{Variable Name}. - Display Name: The name displayed for the current view variable set in the dashboard. For example, the variable name is
host, and the display name isHost Name. -
Query: Defines the query logic for the view variable.
- Sort: Sorts the returned view variables by default, ascending, descending, or custom order.
-
Display Options
-
Hide: When enabled, this variable is not visible in the dashboard in non-editing mode.
-
Multi-value: Allows selecting multiple values simultaneously.
-
Include * Option: Enabled by default.
- Ignore this field filter. The chart query will not include the filter condition for this variable.
- All variable values will be used as filter conditions (up to 100 values supported). Having too much data may affect performance, so use this feature as needed.
-
-
Default Value: The initial value of the current view variable in the dashboard. Based on your configuration in "Display Options", a dropdown lists the variables, allowing you to select the initial value displayed by default in the dashboard. If the default value is empty, the dashboard will display the latest field data.
Click Select All to select all values in the current list.
Note
When workspace data is interrupted, fields can be preset in the view variables. Once data is restored, the system will automatically match them.
Manage Variables¶
The following operations can be performed on view variables:
- Variables can be cloned, edited again, or deleted directly.
- If a variable is set to be hidden during configuration, a hidden button will be displayed on the right side of the list for that variable.