I’ve used d3.select to target an element <div id="example">
in this document:
Things to keep in mind:
- Include morley.csv (Search local JavaScript for
/morley.csv
) - Include D3.js
- Include box.js
- Include the local CSS and JavaScript
Check out the code for this post on GitHub.