score:1

Accepted answer

it is not because you saved it as jsp or html page. you need to add charset="utf-8" to your script declaration as d3.js uses utf characters.

eg.

<script src="http://d3js.org/d3.v3.js" charset="utf-8"></script>

Related Query