title: How can I use d3-scale-chromatic functions with a domain other than [0, 1]?
body: <p>Here's my code:</p>
  
  <pre><code>var color = d3.scaleLinear()
      .domain([0, 10000])
      .interpolate(d3.interpolateBlues);
  console.log(color(5000));
  </code></pre>
  
  <p>Instead of telling me that 5000 corresponds to a light blue, I get the error "r0 is not a function". What am I doing wrong?</p>