# Variable Custom Labels in Kibana Visualization

**URL:** <https://discuss.elastic.co/t/variable-custom-labels-in-kibana-visualization/183885>\
**Category:** Kibana\
**Created:** [June 3, 2019, 6:15am UTC](https://discuss.elastic.co/t/variable-custom-labels-in-kibana-visualization/183885 "2019-06-03T06:15:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suraj\_Kumar2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suraj_kumar2/32/47312_2.png) [@Suraj\_Kumar2](https://discuss.elastic.co/u/Suraj_Kumar2)\
**Post date:** [June 3, 2019, 6:15am UTC](https://discuss.elastic.co/t/variable-custom-labels-in-kibana-visualization/183885/1 "2019-06-03T06:15:10Z")

</div>

Hi,

I am using kibana for visualization of sensor log, and I have three fields['field\_name','field\_value','field\_time'] in one json doc. There are many field\_names in the whole index, and I have an option filter where I choose the field\_name from the list, and plotting is done b/w the field\_value(max) and time for all the docs with that specific filed\_name. What I want to achieve is changing the label name of y axis dynamically. In the dashboard when I choose a field\_name, that field\_name should be displayed in the label of y axis in the plot.

Its something like variable custom label I guess. Can somebody please help me asap.

Thanks.

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [June 3, 2019, 6:07pm UTC](https://discuss.elastic.co/t/variable-custom-labels-in-kibana-visualization/183885/2 "2019-06-03T18:07:02Z")

</div>

It is not currently possible to use a variable for the custom label.

---

<div class="post-metadata">

**Author:** ![Suraj\_Kumar2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suraj_kumar2/32/47312_2.png) [@Suraj\_Kumar2](https://discuss.elastic.co/u/Suraj_Kumar2)\
**Post date:** [June 4, 2019, 4:19am UTC](https://discuss.elastic.co/t/variable-custom-labels-in-kibana-visualization/183885/3 "2019-06-04T04:19:53Z")

</div>

Hi nick,

Is there any other way, like using vega or timelion to acheive this?

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [June 4, 2019, 3:44pm UTC](https://discuss.elastic.co/t/variable-custom-labels-in-kibana-visualization/183885/4 "2019-06-04T15:44:02Z")

</div>

Hi Suraj,

It might be possible with Vega, but I can not find any examples for doing this.

---

<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:** [July 2, 2019, 3:44pm UTC](https://discuss.elastic.co/t/variable-custom-labels-in-kibana-visualization/183885/5 "2019-07-02T15:44:05Z")

</div>

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