This post follows the previous basic boxplot. It shows how to add several groups to the chart, using a scaleBand
for the X axis. Find more boxplot examples in the boxplot section and don't forget the caveats related with this type of chart.
d3.nest()
function here is the key step: it computes all the necessary box features per level of factor. This post helped me understand how this function work.