avoid tooltip covering dist chart or moving out of the window on top