Update Graph on Data-frame selection callback

Hello Community

It seems that I am absolutely beginner , I am trying to update a graph according to a Pandas dataframe column selection, I wonder if any one could help me with a simple code.

thank you in advance