Graph working for co ordinate values less than 5