# Combine 2 types of panels

**URL:** <https://discuss.elastic.co/t/combine-2-types-of-panels/279983>\
**Category:** Kibana\
**Created:** [July 29, 2021, 12:38pm UTC](https://discuss.elastic.co/t/combine-2-types-of-panels/279983 "2021-07-29T12:38:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexM566](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexm566/32/89480_2.png) [@AlexM566](https://discuss.elastic.co/u/AlexM566)\
**Post date:** [July 29, 2021, 12:38pm UTC](https://discuss.elastic.co/t/combine-2-types-of-panels/279983/1 "2021-07-29T12:38:34Z")

</div>

Hello guys,

Is there possible to combine 2 visualization in 1 (like in the image below ). So I have vertical bar visualization of data and I want to add a line visualization over that. I have to mention that the data source is the same . Is this possible?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/1/d1afd2f693ef777524ae8c2351363fa0a6516c56.png)

Thank you,  
Alex

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [July 29, 2021, 2:51pm UTC](https://discuss.elastic.co/t/combine-2-types-of-panels/279983/2 "2021-07-29T14:51:09Z")

</div>

Hi @AlexM566 ,

in Lens bar, area and line chart have the concept of "layering" where you can stack different configurations of them, even different chart types.

In the example below I'm mixing stacked bar chart with a line chart for a date histogram:

 ![Screenshot 2021-07-29 at 16.46.49](https://us1.discourse-cdn.com/elastic/original/3X/a/5/a5726649ab3b73f20e6787f8a08c9556f1ed9894.jpeg)

You can see that on the top left of each layer panel there's a chart type icon you can choose from.

Sharing the same date histogram is the best option, but Lens does not limit you to that.  
Each layer is kind of independent and it could work cross-index too.

---

<div class="post-metadata">

**Author:** ![AlexM566](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexm566/32/89480_2.png) [@AlexM566](https://discuss.elastic.co/u/AlexM566)\
**Post date:** [July 29, 2021, 3:23pm UTC](https://discuss.elastic.co/t/combine-2-types-of-panels/279983/3 "2021-07-29T15:23:12Z")

</div>

Hi @Marco_Liberati

You literally saved me.

Thank you so much !  
Have a nice evening  
Alex

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 26, 2021, 3:23pm UTC](https://discuss.elastic.co/t/combine-2-types-of-panels/279983/4 "2021-08-26T15:23:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
