Hey! The yellow line between the keyframes indicates that the keyframed property has not change during that interval.
And the dotted line, I think, could be indicating that the ball is parented and has moved from its parent origin? Something like that. It is a relationship line I think