Completed basic X-axis positions calculation algoritm.