graph works, and dynamic upper and lower limits are calculated, only the initialisation of the uper and lower limits has to be done