# Timeline | Subgroups

This example shows the workings of the subgroups. Subgroups can be stacked on each other, and the items within each subgroup can be stacked.

When stacking is on for the whole timeline, all items in the timeline will be stacked with respect to each other unless the `stackSubgroups` option is set to `true` and at least one subgroup has stacking enabled. In that case the subgroups will be stacked with respect to each other and the elements in each subgroup will be stacked based on the individual stacking settings for each subgroup.

Option | Status | Toggle
--- | --- | ---
Stacking | false |
stackSubgroups | true |
Stack Subgroup 0 | false |
Stack Subgroup 1 | false |
Stack Subgroup 2 | false |