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
2. after updating variable where data is not present but preseve previous data but it should show blank,