title: Continous colors for choropleth in Leaflet
body: <p>In Leaflet choropleth to assign colors  you can use this function. <a href="http://leafletjs.com/examples/choropleth.html" rel="nofollow">http://leafletjs.com/examples/choropleth.html</a></p>
  
  <pre><code>function getColor(d) {
  return d &gt; 1000 ? '#800026' :
         d &gt; 500  ? '#BD0026' :
         d &gt; 200  ? '#E31A1C' :
         d &gt; 100  ? '#FC4E2A' :
         d &gt; 50   ? '#FD8D3C' :
         d &gt; 20   ? '#FEB24C' :
         d &gt; 10   ? '#FED976' :
                    '#FFEDA0';
   }
  </code></pre>
  
  <p>Instead of a particular breaks in colors is there a way I can just provide the minimum and maximum value and let the colors define themselves?</p>
  
  <p>I have a couple of scales and defining a discrete scale for each of them is not possible. </p>
  
  <p>Any suggestions to use  Chroma.JS <a href="https://github.com/gka/chroma.js" rel="nofollow">https://github.com/gka/chroma.js</a> ?  </p>