If you've been following along with the previous recipes in this chapter, you'll now have a complete web application stack ready, and we can use it to create charts and graphs for the Web.
For this recipe, we'll create a scatter plot of the US census Race Data that we saw in the Grouping Data with $group-by recipe in Chapter 6, Working with Incanter Datasets. In fact, this will be the same as we saw in the Creating scatter plots with Incanter recipe in Chapter 10, Graphing in Incanter, only this time we'll be creating a web page.
To do this, we'll use the D3 JavaScript library (http://d3js.org/). D3 stands for Data-Driven Documents, and this library makes it easy to load data and create HTML and SVG structures from data. You can use it to transform data into tables or charts. It is pretty low-level, though. With D3, we'd be creating many of the actual elements. We'll do this in a later recipe, but for now we'll use the NVD3 library (http://nvd3.org/), which...