# Customize the legend of visualization

**URL:** <https://discuss.elastic.co/t/customize-the-legend-of-visualization/144863>\
**Category:** Kibana\
**Created:** [August 17, 2018, 9:36am UTC](https://discuss.elastic.co/t/customize-the-legend-of-visualization/144863 "2018-08-17T09:36:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![M.alsioufi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m.alsioufi/32/52269_2.png) [@M.alsioufi](https://discuss.elastic.co/u/M.alsioufi)\
**Post date:** [August 17, 2018, 9:36am UTC](https://discuss.elastic.co/t/customize-the-legend-of-visualization/144863/1 "2018-08-17T09:36:09Z")

</div>

Is it possible to add field name (or to customize) the legend of a visualization? I am using Kibana 6.3

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [August 17, 2018, 10:10am UTC](https://discuss.elastic.co/t/customize-the-legend-of-visualization/144863/2 "2018-08-17T10:10:12Z")

</div>

Hey @M.alsioufi,

In a very basic case you'd usually use `Custom Label`, but can you please share screenshot and point to the thing you'd like to customize exactly?

Thanks,  
Oleg

---

<div class="post-metadata">

**Author:** ![M.alsioufi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m.alsioufi/32/52269_2.png) [@M.alsioufi](https://discuss.elastic.co/u/M.alsioufi)\
**Post date:** [August 17, 2018, 12:11pm UTC](https://discuss.elastic.co/t/customize-the-legend-of-visualization/144863/3 "2018-08-17T12:11:06Z")

</div>

Custom Label only shown on Tooltip or the first level bucket but if you have multiple levels of buckets it will not be shown in the legend.  
 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/6/1/61030e7af2ab3ff79f28ac50ee78dbb84908fdc0.png)  
So in this snapshoot you can see I have two levels (version, and result) the custom label is not shown, what I want to show is like : (Version:1.0.0, Version:2.0.0, result: true, result: false)

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [August 17, 2018, 12:45pm UTC](https://discuss.elastic.co/t/customize-the-legend-of-visualization/144863/4 "2018-08-17T12:45:56Z")

</div>

Okay, I see.

I think there is no good way to do it throw visualization/legend customization at the moment.

One idea is to use custom scripted field where you can prepend value with the label you need and use that field to build your visualization instead. But that may not be what you want though.

```auto
'Version: ' + doc['version.keyword'].value

```

Let's see, maybe someone else can come up with a better idea.

Best,  
Oleg

---

<div class="post-metadata">

**Author:** ![M.alsioufi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m.alsioufi/32/52269_2.png) [@M.alsioufi](https://discuss.elastic.co/u/M.alsioufi)\
**Post date:** [August 22, 2018, 3:54pm UTC](https://discuss.elastic.co/t/customize-the-legend-of-visualization/144863/5 "2018-08-22T15:54:13Z")

</div>

Well, I'd prefer to not create an entire new field just for this, but thanks 🙂

---

<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:** [September 19, 2018, 3:54pm UTC](https://discuss.elastic.co/t/customize-the-legend-of-visualization/144863/6 "2018-09-19T15:54:36Z")

</div>

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