Dropdown updation of live plotting graph when only particular option is selected

Can we show the live plotting graph of one particular option when it is selected, because when another option is selected the graph won’t update indeed it displays only the previous graph that was been executing. And when tried selecting another option for plotting, it stops working and throws keyError.

options=[{‘label’ : s,‘value’ : s} for s in rocket_sensors.keys()],