# A relative bar chart visualitation

**URL:** <https://discuss.elastic.co/t/a-relative-bar-chart-visualitation/93518>\
**Category:** Kibana\
**Created:** [July 18, 2017, 7:37am UTC](https://discuss.elastic.co/t/a-relative-bar-chart-visualitation/93518 "2017-07-18T07:37:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![panchicore](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/panchicore/32/20150_2.png) [@panchicore](https://discuss.elastic.co/u/panchicore)\
**Post date:** [July 18, 2017, 7:37am UTC](https://discuss.elastic.co/t/a-relative-bar-chart-visualitation/93518/1 "2017-07-18T07:37:50Z")

</div>

I have an incident database, has country and country\_population each document. Looks like this:

100 incidents counts: Country:China, Population: 1000  
10 incident counts: Country:Iceland, Population: 5

So if I make a bar chart with Metric:Count and Bucket:Country, China will be the highest bar, with 100 incidents.  
The output I want to understand how to do is: Iceland affected population is 50% and China 10%, so I wanted to plot those values to represent a relative information per population.

Thank you.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 18, 2017, 7:42am UTC](https://discuss.elastic.co/t/a-relative-bar-chart-visualitation/93518/2 "2017-07-18T07:42:40Z")

</div>

You will need to use Timelion to do this for you, where you can run algorithms to make the values relative.

---

<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 15, 2017, 7:53am UTC](https://discuss.elastic.co/t/a-relative-bar-chart-visualitation/93518/3 "2017-08-15T07:53:58Z")

</div>

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