Fix plotting of very small or very large numbers in D3