# How to access Grafana Variables in Plotly panel

**URL:** <https://community.grafana.com/t/how-to-access-grafana-variables-in-plotly-panel/88423>\
**Category:** Grafana\
**Tags:** dashboard-variables, community-plugins, panel\
**Created:** [May 26, 2023, 9:02am UTC](https://community.grafana.com/t/how-to-access-grafana-variables-in-plotly-panel/88423 "2023-05-26T09:02:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhinavanandpnbe](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@abhinavanandpnbe](https://community.grafana.com/u/abhinavanandpnbe)\
**Post date:** [May 26, 2023, 9:02am UTC](https://community.grafana.com/t/how-to-access-grafana-variables-in-plotly-panel/88423/1 "2023-05-26T09:02:20Z")

</div>

I have set the static value just for testing, but I want to have dynamic values there. Also, I have defined variables for each parameter. How can I access those variables in the javascript code below?

I have tried passing something like this, but didn’t work:  
upperfence: [‘$upperfence’]

![image](https://us1.discourse-cdn.com/grafana/original/3X/1/9/19b5a7c9c7ba87ba27dd928a6ad25760e52bc966.png)

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [June 7, 2023, 4:44pm UTC](https://community.grafana.com/t/how-to-access-grafana-variables-in-plotly-panel/88423/2 "2023-06-07T16:44:56Z")

</div>

what is your version of grafana, data source

---

<div class="post-metadata">

**Author:** ![usman.ahmad](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/usman.ahmad/32/29706_2.png) [@usman.ahmad](https://community.grafana.com/u/usman.ahmad)\
**Post date:** [June 7, 2023, 4:56pm UTC](https://community.grafana.com/t/how-to-access-grafana-variables-in-plotly-panel/88423/3 "2023-06-07T16:56:06Z")

</div>

Hi @abhinavanandpnbe

I checked about this plugin and it seems to be a community plugin as described on the plugin [page](https://grafana.com/grafana/plugins/ae3e-plotly-panel/) (that means, it is not maintained by us).

I see that they provide some examples of using variables and also on their official GitHub [page](https://github.com/ae3e/ae3e-plotly-panel) under issues, can search for variable-related questions.

I hope this is helpful.

---

<div class="post-metadata">

**Author:** ![abhinavanandpnbe](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@abhinavanandpnbe](https://community.grafana.com/u/abhinavanandpnbe)\
**Post date:** [June 8, 2023, 9:44am UTC](https://community.grafana.com/t/how-to-access-grafana-variables-in-plotly-panel/88423/4 "2023-06-08T09:44:56Z")

</div>

Thanks @usman.ahmad and @yosiasz, I have already resolved this issue.

---

<div class="post-metadata">

**Author:** ![usman.ahmad](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/usman.ahmad/32/29706_2.png) [@usman.ahmad](https://community.grafana.com/u/usman.ahmad)\
**Post date:** [June 8, 2023, 10:17am UTC](https://community.grafana.com/t/how-to-access-grafana-variables-in-plotly-panel/88423/5 "2023-06-08T10:17:53Z")

</div>

Good to hear that you sovled it @abhinavanandpnbe

We will encourage if you can post your solution so that the other community users who are using this plugin can use it if they have similar problem.
