Use D3 scales to determine coordinates for graphs