# Customize lens colors in kibana

**URL:** https://discuss.elastic.co/t/customize-lens-colors-in-kibana/288901
**Category:** Kibana
**Created:** [November 10, 2021, 2:50pm UTC](https://discuss.elastic.co/t/customize-lens-colors-in-kibana/288901 "2021-11-10T14:50:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mohamed.softparadigm](https://avatars.discourse-cdn.com/v4/letter/m/9de0a6/32.png) [@mohamed.softparadigm](https://discuss.elastic.co/u/mohamed.softparadigm)
#### Post date: [November 10, 2021, 2:50pm UTC](https://discuss.elastic.co/t/customize-lens-colors-in-kibana/288901/1 "2021-11-10T14:50:52Z")

</div>

By using filters in kibana, i cannot change lens colors, does kibana support this option?

---

<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: [November 10, 2021, 4:45pm UTC](https://discuss.elastic.co/t/customize-lens-colors-in-kibana/288901/2 "2021-11-10T16:45:57Z")

</div>

Hi @mohamed.softparadigm

welcome to the Kibana community.

Can you share some examples of what you've attempted so far?

If you use `Filters` for your Horizontal axis, each `Vertical` dimension should show a color you can customize:

 ![Screenshot 2021-11-10 at 17.40.43](https://us1.discourse-cdn.com/elastic/original/3X/1/8/18eb3773c7c23fe490bfd6db8461fe6f5b019291.png)  
 ![Screenshot 2021-11-10 at 17.39.01](https://us1.discourse-cdn.com/elastic/original/3X/2/f/2f1637ee29ac1e2d716c773d4be2b4c8a9dcd97d.jpeg)

If you use `Filters` as break down criteria, you can control the colors at the palette level, not by value:

 ![Screenshot 2021-11-10 at 17.40.21](https://us1.discourse-cdn.com/elastic/original/3X/1/c/1c250a6135a043a9173611c029ab7e464634b1db.png)

One trick here is to reorder the filter based on the palette you are using to match the order there. Not perfect yet, we know.

In this Lens FAQ page you can find more about color customization: [Create visualizations with Lens | Kibana Guide [7.15] | Elastic](https://www.elastic.co/guide/en/kibana/current/lens.html#lens-faq)

And for "coloring by value" in Lens I can recommend to track the following issue: [[Lens] Support categorical coloring by name · Issue #101942 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/101942)

---

<div class="post-metadata">

### Author: ![Mrizzi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mrizzi/32/96984_2.png) [@Mrizzi](https://discuss.elastic.co/u/Mrizzi)
#### Post date: [November 10, 2021, 9:13pm UTC](https://discuss.elastic.co/t/customize-lens-colors-in-kibana/288901/3 "2021-11-10T21:13:08Z")

</div>

Hi, [there's a feature request in github for this functionality](https://github.com/elastic/kibana/issues/101942) since june 10th.

My solution to the lack of this option was to implement each filter as a different layer in the lens visualization allowing you to color them individually.

Beware that this means you don't get automated ordering of the datasets (like the biggest bars being first in a bar chart) but you do get to pick any color to any of the layers

---

<div class="post-metadata">

### Author: ![ghudgins](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ghudgins/32/138532_2.png) [@ghudgins](https://discuss.elastic.co/u/ghudgins)
#### Post date: [November 10, 2021, 9:50pm UTC](https://discuss.elastic.co/t/customize-lens-colors-in-kibana/288901/4 "2021-11-10T21:50:20Z")

</div>

It's an important caveat! Thank you for sharing it. We also are looking at options to solve the sorting issue--aiming to offer a much more robust solution in the near future. [[Lens] Allow client-side sorting of dimensions at datasource level, for all chart types · Issue #86184 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/86184)

---

<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: [December 8, 2021, 9:50pm UTC](https://discuss.elastic.co/t/customize-lens-colors-in-kibana/288901/5 "2021-12-08T21:50:50Z")

</div>

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