d3 replacing semicolon with comma
Let's convert my comment to an answer, so it's not left unanswered:
Assuming that your values are separated by a semicolon (so technically it's not a CSV anymore), you might want to look at this: https://github.com/d3/d3-dsv
The following code works for me :
d3.dsv(';')("your_file.csv", function(error, data){
...
}
d3.dsv(separator)
is a contructor that returns a function that works exactly as the d3.csv
function.
Actually, d3.csv
is equivalent to d3.dsv(',')
Just for the precision, .csv
with semi-colons are default in France for example (yeah after all, it is not as if csv meant "comma-separated values").
DSV stands for delimiter-separated values and are more general.