# How to add days instead of number on charts

**URL:** <https://discuss.elastic.co/t/how-to-add-days-instead-of-number-on-charts/210091>\
**Category:** Kibana\
**Created:** [December 2, 2019, 12:53am UTC](https://discuss.elastic.co/t/how-to-add-days-instead-of-number-on-charts/210091 "2019-12-02T00:53:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesyone](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@jamesyone](https://discuss.elastic.co/u/jamesyone)\
**Post date:** [December 2, 2019, 12:53am UTC](https://discuss.elastic.co/t/how-to-add-days-instead-of-number-on-charts/210091/1 "2019-12-02T00:53:01Z")

</div>

Hi,

Im having trouble changing the days from numbers to actual days. Currently the days are listed as 1,2,3,4,5,6,7 but I want to change those to the actual Monday, Tuesday, Wednesday, etc..  
I used the code `doc[''].value.getDayOfWeek()`but always get the number instead of the actual days.

Should I change the code- or use an entirely different code?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/6/c6b76db6644fb391e598392cd3487c9caad76f64.png)

---

<div class="post-metadata">

**Author:** ![Liza\_Katz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/liza_katz/32/52358_2.png) [@Liza\_Katz](https://discuss.elastic.co/u/Liza_Katz)\
**Post date:** [December 2, 2019, 8:29am UTC](https://discuss.elastic.co/t/how-to-add-days-instead-of-number-on-charts/210091/2 "2019-12-02T08:29:20Z")

</div>

Hi,

You can use a Static Lookup formatter.

- Go to Management \> Index Patterns.
- Press the edit icon on the field that you wish to format.
- Choose the "Static Lookup" format and add options that map your numeric values to string.
- After saving (and maybe refreshing), the field will display the string values across all applications.

---

<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:** [January 8, 2020, 5:34am UTC](https://discuss.elastic.co/t/how-to-add-days-instead-of-number-on-charts/210091/4 "2020-01-08T05:34:36Z")

</div>

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