title: Mapping in d3 ordinal scales
body: <p>I am using D3's ordinal scale, to map numbers to color. 
  I have used this: </p>
  
  <pre class="lang-js prettyprint-override"><code>color = d3.scale.ordinal().range(["#1f77b4", "#ff7f0e", "#2ca02c", "#d62728", "#9467bd", "#8c564b", "#e377c2"]).domain([0,6]);
  console.log(color(0),color(1),color(2),color(3),color(4),color(5),color(6));
  </code></pre>
  
  <p>The response I am getting is:</p>
  
  <p><code>#1f77b4 #2ca02c #d62728 #9467bd #8c564b #e377c2 #ff7f0e</code></p>
  
  <p>I am curious shouldn't the response be:</p>
  
  <p><code>#1f77b4, #ff7f0e, #2ca02c, #d62728, #9467bd, #8c564b, #e377c2</code></p>
  
  <p>Please advise.</p>