{"issue":{"created_at":"2011-12-05T18:22:08Z","state":"open","updated_at":"2011-12-05T19:21:16Z","comments":2,"user":{"gravatar_id":"d4e1d473a995ef37b3e03e9e6006c3e3","id":63387,"url":"https://api.github.com/users/majek","avatar_url":"https://secure.gravatar.com/avatar/d4e1d473a995ef37b3e03e9e6006c3e3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"majek"},"body":"First, make sure that both points aren't in the same line - this is the simplest solution (the alternative is to ensure that the distance from each other is > 6 when X1 > X2)\r\n\r\nNext, as we hardcode that label for x1 shall be on left and x2 on right, we may predict forbidden positions. The first point (label on left) shall not go too far left and shall avoid positions on the right of the Y axis.\r\nSimilarly X2 (label on right) shall avoid positions on the left of Y axis (note that, in 3 quater the coordinates take more space due to two minuses, like: -4 -4, so we have to forbid column -4 as well) and close to right border.\r\n\r\nOn the Y axis, we should just make sure that we don't collide with axis labels - it's enough to avoid line -1.\r\n\r\nAll that makes the exercise a bit harder (labels from -10, not -8, small numbers are now less probable).","assignee":null,"number":7821,"pull_request":{"patch_url":"https://github.com/Khan/khan-exercises/pull/7821.patch","html_url":"https://github.com/Khan/khan-exercises/pull/7821","diff_url":"https://github.com/Khan/khan-exercises/pull/7821.diff"},"id":2452638,"labels":[],"title":"Fix #4965: Make sure the labels aren't too close to each other.","html_url":"https://github.com/Khan/khan-exercises/issues/7821","closed_at":null,"url":"https://api.github.com/repos/Khan/khan-exercises/issues/7821","milestone":null},"action":"created","comment":{"created_at":"2011-12-05T19:21:16Z","updated_at":"2011-12-05T19:21:16Z","user":{"gravatar_id":"d4e1d473a995ef37b3e03e9e6006c3e3","id":63387,"url":"https://api.github.com/users/majek","avatar_url":"https://secure.gravatar.com/avatar/d4e1d473a995ef37b3e03e9e6006c3e3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"majek"},"body":"Similar issue: #5193","id":3021616,"url":"https://api.github.com/repos/Khan/khan-exercises/issues/comments/3021616"}}