# Heatmap percentage mode local for each x-value

**URL:** <https://discuss.elastic.co/t/heatmap-percentage-mode-local-for-each-x-value/249705>\
**Category:** Kibana\
**Created:** [September 23, 2020, 8:35pm UTC](https://discuss.elastic.co/t/heatmap-percentage-mode-local-for-each-x-value/249705 "2020-09-23T20:35:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NiclasK](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/niclask/32/47189_2.png) [@NiclasK](https://discuss.elastic.co/u/NiclasK)\
**Post date:** [September 23, 2020, 8:35pm UTC](https://discuss.elastic.co/t/heatmap-percentage-mode-local-for-each-x-value/249705/1 "2020-09-23T20:35:13Z")

</div>

Hi,

I'm trying to use a heatmap to show error count vs software version. On the Y-axis I have all the errors that can be reported by our software. On the X-axis I have the version. I would like the percentage to be calculated based on only the documents belonging to each SW version that is shown on the X-axis. That way I can compare the error distribution between several SW versions quickly. Basically every column with different SW version on the X-value would sum up to 100 %. Like a vertical bar chart with percentage mode on the y-axis.

If I enable the percentage mode, it looks like it calculate the percentage based on the total count of documents.

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [September 30, 2020, 8:23pm UTC](https://discuss.elastic.co/t/heatmap-percentage-mode-local-for-each-x-value/249705/2 "2020-09-30T20:23:39Z")

</div>

Hi NiclasK,

According to the visualization developers, that Percentage mode on heat maps is indeed for the entire chart, not for each term on the x-axis. It might be a good enhancement request to add that option.

The only think I think you can do for now to get a similar result is a vertical bar chart with the Y-Axes Mode set to Percentage.

In this example;

- my Metric is Count
- my x-axis is a `Terms` aggregation on extension.keyword
- then `Split Series` with another `Terms` aggregation on response.keyword
- then in `Metrics & Axes` I set the Y-Axes Mode to Percentage

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/5/25d176b696b4e12c086236138d30a31f954d1d9b.png)

---

<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:** [October 28, 2020, 8:23pm UTC](https://discuss.elastic.co/t/heatmap-percentage-mode-local-for-each-x-value/249705/3 "2020-10-28T20:23:44Z")

</div>

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