O'Reilly logo

Data Visualization: Representing Information on Modern Web by Swizec Teller, Ændrew Rininsland, Simon Timms, Andy Kirk

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

Chapter 4. JavaScript for Visualization

In Chapter 2, JavaScript and HTML5 for Visualizations, we looked at the advantages offered by building our visualizations using scalable vector graphics. It should, however, have been clear that building SVGs by manipulating the underlying XML is a frustrating and time consuming exercise. Although there are countless XML manipulation tools, it would be nice to take advantage of the power of an API which is specifically designed for building SVGs instead of a more general language.

There are a number of JavaScript libraries that have been created for the manipulation of SVGs. svg.js (http://www.svgjs.com/) and Raphaël (http://raphaeljs.com/), both deserve mentions as being excellent tools for drawing. The ...

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