My solution
Use d3-approved solution
Auto-linear scale