score:1

Accepted answer

Close the d3.json(

At the end of your code:

    }

</script>

should be:

});

</script>

score:1

You do not close your d3.json call anywhere...You should add a closing parens at the end of the call and that should fix that particular issue.

score:1

You are missing closing bracket for d3.json(. So add a closing bracket ')' after '}' in the end.

score:2

Whats problem? Add ); at the end of your <script> and error disappears

  ...
.text(function(d) { return d.name; });

});
 ^^

Related Query