# Stacked and grouped columns in bar chart

**URL:** https://discuss.elastic.co/t/stacked-and-grouped-columns-in-bar-chart/47907
**Category:** Kibana
**Created:** [April 20, 2016, 12:58pm UTC](https://discuss.elastic.co/t/stacked-and-grouped-columns-in-bar-chart/47907 "2016-04-20T12:58:23Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)
#### Post date: [April 20, 2016, 1:44pm UTC](https://discuss.elastic.co/t/stacked-and-grouped-columns-in-bar-chart/47907/2 "2016-04-20T13:44:23Z")

</div>

Yes, this is possible. When setting up the visualization you need to end up with a configuration like this (specifically note the boxed area):

 ![](https://us1.discourse-cdn.com/elastic/original/2X/2/29c5c52ee104b0e0d0e417639cc67acd120e0ffc.png)

To achieve this, first choose "Split Chart" under "Select buckets type". Then make sure the "columns" button is clicked. Then setup the aggregation for the broader grouping (months, in your example).

Next, click "Add sub-buckets" and choose "X-Axis". Then setup the aggregation for the narrower grouping within each broader grouping (i.e. each of the bars within each month, in your example).

Finally, click "Add sub-buckets" again and choose "Split Bars" (the only option). Then setup the aggregation for the stack colors (group A, B, C, in your example).

---

_[View the full topic](https://discuss.elastic.co/t/stacked-and-grouped-columns-in-bar-chart/47907)._
