How to use variables to control the Hide a query button in grafana

  • What Grafana version and what operating system are you using?

Grafana version: v7.5.3
Data source type & version: Iotdb-Grafana and simpejson
OS Grafana is installed on: Windows 10
User OS & Browser: Chrome on Windows 10
Grafana plugins: Only built-in plugins

  • What are you trying to achieve?

use the variables to control the Hide A Query button,

When select different variables, the line chart will draw different chart.

choose one variable:

choose five variables:

  • How are you trying to achieve it?

use variables to control the Hide a query button.

Hi @lee,

Are you trying to accomplish something like this, which was done with template variables?

I would also explore the large “Templates and Variables” section in our documentation:

This is a very large and complex subject within Grafana

Thanks for your reply, but it can not solve my problem.

Because this problem is the simplejson need the accurate and directly variables in query.

So, when choose many variables , the query should generates multiple accurate query statements.

BUT the grafana variables can not do that.

This topic was automatically closed after 365 days. New replies are no longer allowed.