# Stack percentage bar chart in Canvas

**URL:** https://discuss.elastic.co/t/stack-percentage-bar-chart-in-canvas/307227
**Category:** Kibana
**Tags:** canvas
**Created:** [June 15, 2022, 6:52am UTC](https://discuss.elastic.co/t/stack-percentage-bar-chart-in-canvas/307227 "2022-06-15T06:52:46Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Seemant\_Bind](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seemant_bind/32/107045_2.png) [@Seemant\_Bind](https://discuss.elastic.co/u/Seemant_Bind)
#### Post date: [June 15, 2022, 6:52am UTC](https://discuss.elastic.co/t/stack-percentage-bar-chart-in-canvas/307227/1 "2022-06-15T06:52:46Z")

</div>

Hi all,  
I want to create 100% stack bar visual in canvas and also need data label to be visible in order to know the percentage of each stack. Refer to the 1st image that I have tried with demodata and 2nd image for how I want it to be.  
Kindly help

Regards,  
Seemant

![stack1](https://us1.discourse-cdn.com/elastic/original/3X/8/5/85506df6af2740cf8e69cc2b2c73514bd5917f9e.png)  
 ![stack2](https://us1.discourse-cdn.com/elastic/original/3X/b/5/b57b0e9e5015d015de92503b507352abae8f0f35.png)

---

<div class="post-metadata">

### Author: ![Stratoula\_Kalafateli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stratoula_kalafateli/32/70923_2.png) [@Stratoula\_Kalafateli](https://discuss.elastic.co/u/Stratoula_Kalafateli)
#### Post date: [June 15, 2022, 12:06pm UTC](https://discuss.elastic.co/t/stack-percentage-bar-chart-in-canvas/307227/2 "2022-06-15T12:06:35Z")

</div>

Hey! Which version of kibana are you using? In the more recent kibana versions you can create this chart in Lens and import it in Canvas.

---

<div class="post-metadata">

### Author: ![Seemant\_Bind](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seemant_bind/32/107045_2.png) [@Seemant\_Bind](https://discuss.elastic.co/u/Seemant_Bind)
#### Post date: [June 17, 2022, 5:33am UTC](https://discuss.elastic.co/t/stack-percentage-bar-chart-in-canvas/307227/3 "2022-06-17T05:33:47Z")

</div>

![MicrosoftTeams-image](https://us1.discourse-cdn.com/elastic/original/3X/b/1/b1c0dcedff808a33cd527059d0866a8819361068.png)  
Hi thanks for the reply but the problem with importing from lens is that I can't remove the time filter from the visual in canvas plus unable to add data label in lens or in canvas's expression editor

---

<div class="post-metadata">

### Author: ![Stratoula\_Kalafateli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stratoula_kalafateli/32/70923_2.png) [@Stratoula\_Kalafateli](https://discuss.elastic.co/u/Stratoula_Kalafateli)
#### Post date: [June 17, 2022, 6:08am UTC](https://discuss.elastic.co/t/stack-percentage-bar-chart-in-canvas/307227/4 "2022-06-17T06:08:03Z")

</div>

I see, I am afraid that you cant achieve the same chart with the canvas XY charts. We are working though on bringing the same capabilities with Lens on canvas. It will be available very soon, possibly in 8.4.

---

<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: [July 15, 2022, 6:08am UTC](https://discuss.elastic.co/t/stack-percentage-bar-chart-in-canvas/307227/5 "2022-07-15T06:08:48Z")

</div>

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