• Open in:

Partitioned bar chart

Partitioned Bar Chart (also known as Grouped Bar Chart, Side-by-side Bar Chart) enables you to visually group bars and help users analyze both the whole picture and individual logical groups at the same time.

In amCharts 4 you achieve this with the help of axis ranges. Check out the extensive documentation on Axis Ranges for more details or refer to the source code of this demo below.

In order to implement collapsing and expanding columns on this demo, we added axisBreaks at the same positions as axis ranges, with default value of `axisSize = 0` and when legend item is toggled, we animate axisSize value to either 0 or 1.

Demo source