title: How to get quantize values
body: <p>is there a way to get the start and end values of the quantizes of an quantize scale.
  The range is defined by 5 colors ans the domain by d3.min and d3.max function on my data from an json file.
  I need them for my legend of an choropleth map.
  Thank you for helping.</p>
  
  <p>Carsten</p>
  
  <p>Thats my code</p>
  
  <pre><code>var quantizecolors = ["#d7191c","#fdae61","#ffffbf", "#a6d96a","#1a9641"];
  var colorEnerg = d3.scale.quantize().range(quantizecolors);
  colorEnerg.domain([
                              d3.min(collection.features, function(d){return d.properties.EB/d.properties.BEVZ;}),
                              d3.max(collection.features, function(d){return d.properties.EB/d.properties.BEVZ;})
                              ]); 
  </code></pre>