This post describes how to build a very basic grouped barplot with d3.js. You can see many other examples in the barplot section of the gallery. Learn more about the theory of boxplots in data-to-viz.com.
x
and is for groups. It is used to build the axis. The second is called xSubgroup
and allows to adjust the position for each subgroup in the group.