Can I use custom variables while embedding the Grafana Dashboard

I’m embedding a panel on my website. Currently I’m using an iframe. I have 3 different filters I want to apply on my geomap, because the legend clicking does not remove the data like other visualizations, but when I embedded the dashboard as an iframe the custom variables does not show, how can I achieve that?

does the variable show when the dashboard is not embedded in an iframe, meaning when you access it directly in grafana?

@yosiasz, yes it does show.

open up browser console and see id there are any errors

@yosiasz, that’s what I get on the grafana logs when I embed them,
Undeclared variable: $number_of_popular_tests"

do you know why??