# Dynamically chose one or multiple variables to plot on the same chart

**URL:** <https://discourse.nodered.org/t/dynamically-chose-one-or-multiple-variables-to-plot-on-the-same-chart/17141>\
**Category:** Dashboard\
**Created:** [25 October 2019 13:22 UTC](https://discourse.nodered.org/t/dynamically-chose-one-or-multiple-variables-to-plot-on-the-same-chart/17141 "2019-10-25T13:22:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FiloCara](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/filocara/32/27473_2.png) [@FiloCara](https://discourse.nodered.org/u/FiloCara)\
**Post date:** [25 October 2019 13:22 UTC](https://discourse.nodered.org/t/dynamically-chose-one-or-multiple-variables-to-plot-on-the-same-chart/17141/1 "2019-10-25T13:22:35Z")

</div>

Hello,

I'm working on a simple dashboard where the user can choose one or multiple variables to plot on the same chart widget. I decided to use a dropdown widget to dynamically select the desired variables, but I found out that the widget allows only one selection at time.  
Has anyone dealt with this issue before?

Thank you in advance.

Filo

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [25 October 2019 14:57 UTC](https://discourse.nodered.org/t/dynamically-chose-one-or-multiple-variables-to-plot-on-the-same-chart/17141/2 "2019-10-25T14:57:51Z")

</div>

Have a look at his video [https://www.youtube.com/watch?v=nkKf26oKzhQ](https://www.youtube.com/watch?v=nkKf26oKzhQ) at 7:20.  
Is this what you want, link to code can be found in the in the description.
