How to show a jinja variable value in legend of a plot or in seperate textfield in dashboard? #30369
Replies: 1 comment
-
|
Hey @franzislytics! 👋 I'm here to help you with all things code, bugs, and more. Let's squash those bugs together! To show a Jinja variable value in the legend of a plot or in a separate text field in a dashboard, depending on the chosen filter value, you can use the Here is an example of how you can achieve this:
This way, the value of the filter applied to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
In my dashboard I am using a jinja variable as a filter to show a plot depending on which value is choosen in the filter.
Problem: Now in the plot is only shown the general name of the variable in the legend and at the plot.
Example: Variable "KPI" with values "A" and "B", in plot legend is shown "KPI".
Goal:
Option 1: I would like to see "A" or "B" in the legend/at the plot, depending which value is choosen in the filter.
Option 2 would be to print the value in a seperate text field, where I can just show something like: "Choosen value: A".
Beta Was this translation helpful? Give feedback.
All reactions