Chartjs-D3.csv parseFloat will not parse correctly

0👍

The format for the second block of code seems to be wrong.You should check out the API documentation for d3.csv().

The following code below should work, assuming the file path is correct.

d3.csv('DELTA_7_6_20_10.csv', function(d) {
  return {
    bins: d.bins,
    order_count: Number(d.order_count)
  };
}).then(function(data) {
  console.log(data);
});

Leave a comment