# Node-RED choose dynamically data series to visualize in embedded Grafana plots

**URL:** <https://discourse.nodered.org/t/node-red-choose-dynamically-data-series-to-visualize-in-embedded-grafana-plots/43504>\
**Category:** General\
**Created:** [1 April 2021 09:59 UTC](https://discourse.nodered.org/t/node-red-choose-dynamically-data-series-to-visualize-in-embedded-grafana-plots/43504 "2021-04-01T09:59:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![torrdan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/torrdan/32/25312_2.png) [@torrdan](https://discourse.nodered.org/u/torrdan)\
**Post date:** [1 April 2021 09:59 UTC](https://discourse.nodered.org/t/node-red-choose-dynamically-data-series-to-visualize-in-embedded-grafana-plots/43504/1 "2021-04-01T09:59:16Z")

</div>

Hi,  
I use node-red to collect measurements data from several sensors. I store those values in an influxDB database (each sensor is saved as a different field, e.g. temperature 1, pressure1, humidity1, etc..) and plot in grafana. For each field I have defined a separate query in the grafana panel.  
In the node-red dashboard I have embedded the grafana plot (panel) and I would like to have the possibility to dynamically chose from the dashboard which sensor (field) to plot, can be one, two, all, ideally with a drop down menu or check box.  
With the toggle serie option in grafana I can isolate one serie in the visualization at the time, but not more than one, since all other series are then hidden in the visualization  
I tried the multiple variable approach in grafana but the selection window does not appear when the grafana plot is embedded in the node-red dashboard.  
Would it be possible to send from node-red a command to retrieve from the database some fields and plot only them? (sort of what is done to select which time range to visualize)  
Or are there any other approaches?  
Thanks a lot in advance for sour support.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [1 April 2021 12:01 UTC](https://discourse.nodered.org/t/node-red-choose-dynamically-data-series-to-visualize-in-embedded-grafana-plots/43504/2 "2021-04-01T12:01:22Z")

</div>

> [@torrdan](#):
>
> With the toggle serie option in grafana I can isolate one serie in the visualization at the time, but not more than one, since all other series are then hidden in the visualization

If they are all on 1 chart, you can use your mouse to click on the legend to select a single series, use ctrl-click to select multiple.

> [@torrdan](#):
>
> Would it be possible to send from node-red a command to retrieve from the database some fields and plot only them? (sort of what is done to select which time range to visualize)

I don't really see how without writing a Grafana extension to create an API.

---

<div class="post-metadata">

**Author:** ![torrdan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/torrdan/32/25312_2.png) [@torrdan](https://discourse.nodered.org/u/torrdan)\
**Post date:** [1 April 2021 20:29 UTC](https://discourse.nodered.org/t/node-red-choose-dynamically-data-series-to-visualize-in-embedded-grafana-plots/43504/3 "2021-04-01T20:29:04Z")

</div>

Hi, thanks for the quick feedback.

> [@TotallyInformation](#):
>
> If they are all on 1 chart, you can use your mouse to click on the legend to select a single series, use ctrl-click to select multiple.

Thanks, this works, but it's not so convenient with VNC on a mobile phone.

I might then need to try the Grafana extension way

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [31 May 2021 20:29 UTC](https://discourse.nodered.org/t/node-red-choose-dynamically-data-series-to-visualize-in-embedded-grafana-plots/43504/4 "2021-05-31T20:29:08Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
