Using Volkov Business Text plugin, I use a dashboard variable in the javascript, and I want to redraw the panel when that variable is changed. I tried adding the below javascript code but it doesn’t do anything.
const subscription = context.grafana.eventBus.subscribe(
{ type: "variables-changed" },
() => {
console.log("Variables changed");
}
);
I’m using Grafana Cloud with plugin version 5.4.0.