AJAX panel pass dashboard variable through as a javascript variable

Hi,

I am using the AJAX panel to draw custom graphs with plotly.js and it works great.

I’m trying to pass through a dashboard variable to the endpoint as a URL query. It works great if I set it manually in the ‘Parameters (via javascript)’ box but when I try to set it to the variable from the dashboard in the $MyVar format it errors with ‘$MyVar is not defined’.


image

Am I doing something wrong or does the AJAX panel not have the access to pass through dashboard level configured variables? I’m pretty sure some of the global variables work here.

Im running Grafana v5.3.4 (69630b9) and AJAX plugin version 0.0.5

Thanks to ryantxu for the awesome plugin!

Thanks
Brett