Reputation: 213
I have a Grafana dashboard variable named items
. The variable is filled with data coming from an API using JSON API data source.
My API response is an array of objects containing two properties: id
and name
and I have set the name to be the label of my variable. So, in Grafana the dropdown displays a list of names and when I select one or more, it selects the id
.
However, I want to display the selected values and labels in a text panel below. How can I do that? In the text panel, I can type $items
and this will show a comma-separated list of selected values, but how can I display a comma-separated list of selected labels, too?
Upvotes: 2
Views: 7494