# Histogram - Percentage (Y-axis) and Count (X-axis)

**URL:** <https://discuss.elastic.co/t/histogram-percentage-y-axis-and-count-x-axis/175926>\
**Category:** Kibana\
**Created:** [April 8, 2019, 10:55pm UTC](https://discuss.elastic.co/t/histogram-percentage-y-axis-and-count-x-axis/175926 "2019-04-08T22:55:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akashlee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akashlee/32/42141_2.png) [@akashlee](https://discuss.elastic.co/u/akashlee)\
**Post date:** [April 8, 2019, 10:55pm UTC](https://discuss.elastic.co/t/histogram-percentage-y-axis-and-count-x-axis/175926/1 "2019-04-08T22:55:11Z")

</div>

How do I generate a histogram for the below scenario?

Traveler data contains number of nights booked.  
Histogram's Y-axis should say percentage of travelers, and X-axis should say number of nights booked such as 80% booked 1 night, 10% booked 3 nights, 10% booked 5 nights.

In Pie chart, I could generate the above scenario, but a Histogram in the form of bar chart would be more appropriate.

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [April 9, 2019, 12:54am UTC](https://discuss.elastic.co/t/histogram-percentage-y-axis-and-count-x-axis/175926/2 "2019-04-09T00:54:09Z")

</div>

> [@akashlee](#):
>
> Histogram's Y-axis should say percentage of travelers

This sounds kind of like an example in a blog post I wrote for Canvas: [https://discuss.elastic.co/t/canvas-blog-stream/126823/38?u=tsullivan](https://discuss.elastic.co/t/canvas-blog-stream/126823/38)

From the blog post:

> Unfortunately, scaling y-axis to percentage isn't possible to do with the current built-in visualizations tools in Kibana yet

That information is still true, as far as I know.

---

<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:** [May 7, 2019, 12:54am UTC](https://discuss.elastic.co/t/histogram-percentage-y-axis-and-count-x-axis/175926/3 "2019-05-07T00:54:11Z")

</div>

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