Chart wasn’t updating after manually changing a spin button’s value

This also caused a problem during save.