Period = 1 / Frequency. They are reciprocals: no matter how you change one, their product is always exactly 1. Drag the point along the frequency axis and watch the rectangle change shape while its area stays constant.