score:1

Accepted answer

You need to use Array.map in the domain and the rangePoints() to set the range

var xScale = d3.scale.ordinal()
  .rangePoints([0, width], 0.1)
  .domain(data[0].values.map(function(d) { return d.date; }));

Related Query

More Query from same tag