d3-hierarchy … Installing If you use NPM, npm install d3-hierarchy. Otherwise, download the latest release. API Reference … Changes from D3 3.x: The treemap layout no longer rounds to integer pixels by default.