block by jczaplew 4444770

Responsive TopoJSON Sizing with d3.js

Full Screen

States will adjust in size relative to the width of the container div, which allows SVG elements to be appropriately sized regardless of device size or screen resolution, making it a good way to integrate D3 and Bootstrap.

Click “Open in a new window”, change the size of your browser window, and the states will scale with it. *Will not work in the standard view

Please let me know if there is a better/native way to do this!