title: Invert scale function
body: <p>This is interesting to me. Look at the following D3 code:</p>
  
  <pre><code>var scale = d3.scale.linear()
      .domain([100, 500])
      .range([10, 350]);
  
  scale(100);  //Returns 10
  scale(300);  //Returns 180
  scale(500);  //Returns 350
  </code></pre>
  
  <p>Is there a function that inverse of scale? For example,</p>
  
  <pre><code>inverseScale(10);   //Returns 100
  inverseScale(180);  //Returns 300
  inverseScale(350);  //Returns 500
  </code></pre>