Hello and welcome to the community,
as I understand your question, the value from the snippet is not updated on the visualization.
Therefore, please have a look at the usecase for snippets in Automation Help.
To me it seems, like you are missing some bindings.
Maybe this post can also help you.
BR
Fabian