# Kibana Bar chart - Replacing alldocs name in x-axis

**URL:** <https://discuss.elastic.co/t/kibana-bar-chart-replacing-alldocs-name-in-x-axis/279076>\
**Category:** Kibana\
**Created:** [July 19, 2021, 2:13pm UTC](https://discuss.elastic.co/t/kibana-bar-chart-replacing-alldocs-name-in-x-axis/279076 "2021-07-19T14:13:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandeep\_Raju](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sandeep\_Raju](https://discuss.elastic.co/u/Sandeep_Raju)\
**Post date:** [July 19, 2021, 2:13pm UTC](https://discuss.elastic.co/t/kibana-bar-chart-replacing-alldocs-name-in-x-axis/279076/1 "2021-07-19T14:13:14Z")

</div>

Hi all,  
I'm creating a bar chart with split series option instead of x-axis because i want to show all values with different colours.

However, I'm unable to change "\_all All docs" name.  
I want it according to my name i.e ID's

 ![Screenshot 2021-07-19 at 7.44.23 PM](https://us1.discourse-cdn.com/elastic/original/3X/7/2/7280c44f2fafff18fc892eab991d6d5f3348ce1c.png)

Any setting change or turnaround for this?

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [July 19, 2021, 4:24pm UTC](https://discuss.elastic.co/t/kibana-bar-chart-replacing-alldocs-name-in-x-axis/279076/2 "2021-07-19T16:24:52Z")

</div>

You can hide the X axis using Metrics & Axes \> X axis \> Show axis lines & labels.

 ![Screen Shot 2021-07-19 at 12.24.18 PM](https://us1.discourse-cdn.com/elastic/original/3X/c/2/c2644ff5b512f0930bc03dce7650e7aec1218feb.png)

---

<div class="post-metadata">

**Author:** ![Sandeep\_Raju](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sandeep\_Raju](https://discuss.elastic.co/u/Sandeep_Raju)\
**Post date:** [July 20, 2021, 5:11am UTC](https://discuss.elastic.co/t/kibana-bar-chart-replacing-alldocs-name-in-x-axis/279076/3 "2021-07-20T05:11:22Z")

</div>

My typo Mistake.

I do not want to remove/hide the Labels.  
I want to show Labels , but I want to change alldocs to my custom label ID's.  
I can show my "ID's" label in X-series , but I cannot show different colours for each ID.  
If I select by Split series, I can show different colours for each ID, but My label "ID's" in split series is not shown.Instead alldocs appears.  
So I wanted to show my Label "ID's "instead of "alldocs".

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [July 20, 2021, 3:07pm UTC](https://discuss.elastic.co/t/kibana-bar-chart-replacing-alldocs-name-in-x-axis/279076/4 "2021-07-20T15:07:31Z")

</div>

You're asking for the X axis to be labeled with the same value as the color? From the visualization perspective that's duplicate information, are you sure you need to assign both color & labels?

Assuming that you want to assign _both color and labels_, your options are:

- In this visualization, assign the same aggregation to both the X & Split functions. This creates two nested aggregations in Elasticsearch, so it produces duplicates in the tooltip, etc.

- Use Vega to create a custom visualization.

---

<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 17, 2021, 3:08pm UTC](https://discuss.elastic.co/t/kibana-bar-chart-replacing-alldocs-name-in-x-axis/279076/5 "2021-08-17T15:08:06Z")

</div>

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