0

I am new to d3. I am trying to display all values on the x-axis, however the code is grouping similar values. How can I ungroup so that all values show. Even duplicates. Here is my code:

//JSON DATA
var data = [
  {
    "due": 89.99, 
    "datestr": "2012-12-01 00:00:00", 
    "paid": 89.99
  }, 
  {
    "due": 89.99, 
    "datestr": "2013-01-01 00:00:00", 
    "paid": 101.25
  }, 
  {
    "due": 109.99, 
    "datestr": "2013-02-01 00:00:00", 
    "paid": 143.69
  }

];

//Set Axis
var due = d3.scale.ordinal().rangeRoundBands([0, width])
                  .domain(data.map(function (d) { return d.due; }));
K2R
  • 143
  • 1
  • 1
  • 9

0 Answers0