Accepted answer

Thanks to the help of Lars Kotthoff who pointed out I was using an ancient version of d3. Simply changing to a newer version of d3 solved my issue. He answered this via a chat so there was no direct answer to mark up as the correct one. But he solved the issue.

Related Query

More Query from same tag