Basic Grouped Column Chart

The grouped column chart is used to compare a series of data elements grouped along the xAxis. This chart is often useful in conjunction with a stacked column chart because they can use the same data series, and where the stacked column highlights the sum of the data series across an axis the grouped column can be used to show the relative distribution.

This example also demonstrates one of the various data parsers available to developers using d4. In this example, we use the nestedGroup parser which makes it trivial for the developer to prepare the incoming data in a way that the chart expects it.


JavaScript Code