Update scatter/line plot based on new X and Y input values

Hey guys, i am using dash with plotly, i have a set of input components that should change the plots value.

This is my entire code

I have deployed on heroku so you could see what I am talking about. When you chose to define your own values a new card is opened with the values to edit, but when I change then the plot still the same, i have seem a lot of things here and on stackoverflow but nothing helped.

The problem is Solved, it was related to local and global variables, thanks.