This post describes how to build a density chart with several groups using d3.js. It follows the previous basic density chart and is useful to compare the distribution of several variables. More density chart examples in the density chart section of the gallery.
filter()
function. See more on data manipulation. Density is estimated and plotted for each part.