406 (Not Acceptable) error while trying to retrieve CSV data using d3js

Viewed 10

I'm trying to retrieve CSV data from a URL using D3js, However I get the following error:

GET http://abc/test.csv 406 (Not Acceptable)

my code looks like:

  var chartData = d3.csv("http://abc/test.csv", function(d) {
  return {
    Date : d.Date,
    Department : d.Department,
    ProductGroup : d.ProductGroup,
    Description : d.Description,
    ShippingValue : +d.ShippingValue
  };
0 Answers
Related