title: create color scale between two colors
body: <pre><code>let colors = ["#5D2EE8", "#2F9EEE", "#2FC8EE", "#2DD91A", "#CBF22C",
                "#F2CE2C", "#F06E1D", "#E61717", "#3C2EA8", "#7A2EA1"];
  let colorRange = d3.scale.quantile()
                     .domain([0, 31])
                     .range(colors);
  </code></pre>
  
  <p>I want to replace this implementation with the creation of a color palette of x colors between two colors ? 
  For example I want to map my set of 90 numbers between 0 and 31 to 9 colors between yellow and red. Is this possible ?
  I'm using v3</p>