How to access Grafana Variables in Plotly panel

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’]