Having hard time implementing variables

Hello everyone,
I’ve created 2 panels. Primary panel has a Time Series graph. Secondary panel has a form. I’ve created a Custom Variable that should refresh/update the graph when I change the variable value but I couldn’t succeed. Can anyone help me with this?

I can provide parts of my code if needed?