There are few examples of word cloud using D3js, the best known is the one from Jason Davies but the code is difficult to understand as it is coupled with the cloud form (angle, number of words etc) and has many functions.

Based on Jason’s D3-cloud project, my aim was to simplify the code, making it responsive and more accessible to anyone. It only has two functions: Draw and Update


Re-size the browser to see the SVG re-rendered.

Source available on Github