react-d3-components
react-d3-components copied to clipboard
Infamous d3 encoding issue.
Hi, I just spent 20 minutes tracking down a bug that I thought was caused this, then by Browserify, but then turned out to be caused by d3 itself.
https://github.com/mbostock/d3/issues/1747
Basically, the authors of d3 have used some fancy characters which will cause a syntax error if loaded in a script tag without a charset="utf-8" attribute. They don't want to change them because they feel that most people using d3 will use a minified version. Unfortunately that is not the case for those using CommonJS.
Might be good to add something to the docs.
Thanks for the info! I will add a note to the readme.