Black Lives Matter. Please consider donating to Black Girls Code today.

Update annotation with callbacks

I’m trying to use numeric user inputs to change the location of annotations on a plot. Code is at https://github.com/gschivley/climate-life-events/blob/master/app.py, deployed app is at https://climate-life-events.herokuapp.com/.

Everything works correctly in a local deployment - entering a year for child being born that is greater than the year I am born makes 3 new annotations appear. But on the deployed app none of the annotations move when changing the Input field values. Suggestions?

I modified the app to use dropdowns and no longer have an initial value of 0 for one of the variables. Works now but I’m still not sure if it was a bug or code issue on my part.