# Kibana chart legend options

**URL:** <https://discuss.elastic.co/t/kibana-chart-legend-options/264926>\
**Category:** Kibana\
**Created:** [February 20, 2021, 12:57am UTC](https://discuss.elastic.co/t/kibana-chart-legend-options/264926 "2021-02-20T00:57:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CJ\_Chang](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@CJ\_Chang](https://discuss.elastic.co/u/CJ_Chang)\
**Post date:** [February 20, 2021, 12:57am UTC](https://discuss.elastic.co/t/kibana-chart-legend-options/264926/1 "2021-02-20T00:57:11Z")

</div>

Is there a way to reduce the legend length?

 ![chart](https://us1.discourse-cdn.com/elastic/original/3X/4/7/472e859d80ba376af22f80b4d6a30507e66ee658.jpeg)

---

<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:** [February 22, 2021, 7:58pm UTC](https://discuss.elastic.co/t/kibana-chart-legend-options/264926/2 "2021-02-22T19:58:36Z")

</div>

Yes, but I would recommend using a different visualization instead. Maybe a data table.

The main way to do this is lossy. You can go to Index Pattern -\> Field name -\> Formatter and choose the String -\> Truncate formatter. This would apply a max length to this field every time you use it in Kibana.

---

<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:** [March 22, 2021, 7:59pm UTC](https://discuss.elastic.co/t/kibana-chart-legend-options/264926/3 "2021-03-22T19:59:09Z")

</div>

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