SyntaxFix
Write A Post
Hire A Developer
Questions
You should use append("svg:svg"), not append("svg") so that D3 makes the element with the correct 'namespace' if you're using xhtml.
append("svg:svg")
append("svg")