D3.js is a JavaScript library for manipulating the DOM and create dynamic visualizations.

D3.js

D3 helps you bring data to life using HTML, SVG, and CSS. D3’s emphasis on web standards gives you the full capabilities of modern browsers without tying yourself to a proprietary framework, combining powerful visualization components and a data-driven approach to DOM manipulation.

D3 allows you to bind arbitrary data to a Document Object Model (DOM), and then apply data-driven transformations to the document. For example, you can use D3 to generate an HTML table from an array of numbers. Or, use the same data to create an interactive SVG bar chart with smooth transitions and interaction.

The Result

You can find the code in this gihub gist This code parses the current page, for all <p> tags, sets letters to lowercase, strips stopwords, and punctuation. Then draws the co-occurence graph.