Have been playing around with D3 recently. This was the most easy to understand guide/tutorial to understand scales, domains and ranges in D3. It is powerful and I am loving it!
The values in any data set are unlikely to correspond exactly to pixel measurements for use in your visualization. Scales provide a convenient way to map those data values to new values useful for visualization purposes.