block by eesur 25bb20d5dad7b1f0846f

d3js | responsive development with W.js

Full Screen

Simple example using W javascript library for responsive development with d3.js

Test by changing browser dimensions or rotating mobile. The rectangle remains the 1:4 ratio of the viewport.

index.html

W.js

script-compiled.js