I am trying load a large dataset into d3.js by compressing files as gzip, and specifying the "Content-Encoding:gzip" in the request header. The browser doesn't seem to uncompress the gzip file as it is supposed to do. I created jsfiddle containing a simple example here.
d3.text("https://dl.dropboxusercontent.com/s/335n5iyhqlx1m3k/exmaple.txt.gz", function(error, text) {
console.log("compressed: ",text)
}).header("Content-Encoding", "gzip");
What am I doing wrong here?