Panel containing chart is not refreshed after changing variable

<!-
I have used Apache echart for graphs in my Grafana dashboard.


Basically chart remains same after updating variable though new variable has no data.
I have attached before and after image for reference

1.Before updating variable where data is actually present
image
2. after updating variable where data is not present but preseve previous data but it should show blank,
image

Welcome

  1. Version of grafana?
  2. Data source
  3. You are going to have to show us your code where you are using this variable

In the image you posted there seems to be an error

If you hover over that exclamation point what does it say

That wont work. You want to prevent error
In what scenario is it blank? How are you building that variable? Please share

We need to see how you are building the changebox variable