# Bar horizontal percentage chart from boolean

**URL:** <https://discuss.elastic.co/t/bar-horizontal-percentage-chart-from-boolean/325619>\
**Category:** Kibana\
**Tags:** lens\
**Created:** [February 15, 2023, 1:20pm UTC](https://discuss.elastic.co/t/bar-horizontal-percentage-chart-from-boolean/325619 "2023-02-15T13:20:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fbaer](https://avatars.discourse-cdn.com/v4/letter/f/34f0e0/32.png) [@fbaer](https://discuss.elastic.co/u/fbaer)\
**Post date:** [February 15, 2023, 1:20pm UTC](https://discuss.elastic.co/t/bar-horizontal-percentage-chart-from-boolean/325619/1 "2023-02-15T13:20:45Z")

</div>

I am retrieving a boolean field from my logs. Now i want to show this field as horizontal bar in percent with two colors green for true and red for false. It would be great if there was one bar showing the percentage of each accumulating to a bar of 100%.  
At best green shows from the left to the rigt and red from the right to the left hitting in the middle.  
Is this even possible?

I kinda tried a few hours with the Bar horizontal percentage chart but was not able to achieve what i was looking for.  
Kinda feel this is just one or two settings to make this work.

Kind Regards

---

<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:** [February 15, 2023, 2:40pm UTC](https://discuss.elastic.co/t/bar-horizontal-percentage-chart-from-boolean/325619/2 "2023-02-15T14:40:54Z")

</div>

Hi @fbaer

welcome to the Kibana community.

Is this is the kind of visualization you're looking for?

 ![Screenshot 2023-02-15 at 15.38.37](https://us1.discourse-cdn.com/elastic/original/3X/e/8/e8e8783017c37f760e5e4624c5f72fd11d60c906.png)

I've made a breakdown Filters with `Cancelled: true` and `Cancelled: false` in a horizontal stacked percentage visualization. Here's the configuration:

 ![Screenshot 2023-02-15 at 15.38.49](https://us1.discourse-cdn.com/elastic/original/3X/3/4/340faa813d3ce0c29bf20a867343c32a06e986ed.png)

---

<div class="post-metadata">

**Author:** ![fbaer](https://avatars.discourse-cdn.com/v4/letter/f/34f0e0/32.png) [@fbaer](https://discuss.elastic.co/u/fbaer)\
**Post date:** [February 15, 2023, 2:52pm UTC](https://discuss.elastic.co/t/bar-horizontal-percentage-chart-from-boolean/325619/3 "2023-02-15T14:52:48Z")

</div>

Thank you for the fast reply. 😀

---

<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:** [March 15, 2023, 2:52pm UTC](https://discuss.elastic.co/t/bar-horizontal-percentage-chart-from-boolean/325619/4 "2023-03-15T14:52:51Z")

</div>

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