O'Reilly logo

Social Data Visualization with HTML5 and JavaScript by Simon Timms

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Visualization

d3 purposefully steers away from providing concrete visualizations. There is no single function you can call to get a bar chart or a scatter plot. Instead, it provides tools around creating the visualizations; these tools in turn provide a high degree of flexibility and empowers the creation of unique visualizations. One of the more powerful tools is the layout mechanism. Layouts provide some of the boilerplate code that would have to be written to achieve a certain sort of visualization.

We're going to make use of the Force-directed graph layout. Force-directed graphs provide a way of visualizing data that is interconnected. The strength of the bonds between nodes is frequently a function of how closely related the nodes are.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required