# Kibana 4.1 automatic axis scaling

**URL:** <https://discuss.elastic.co/t/kibana-4-1-automatic-axis-scaling/27860>\
**Category:** Kibana\
**Created:** [August 21, 2015, 8:26pm UTC](https://discuss.elastic.co/t/kibana-4-1-automatic-axis-scaling/27860 "2015-08-21T20:26:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fernando\_Gamboa](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@Fernando\_Gamboa](https://discuss.elastic.co/u/Fernando_Gamboa)\
**Post date:** [August 21, 2015, 8:26pm UTC](https://discuss.elastic.co/t/kibana-4-1-automatic-axis-scaling/27860/1 "2015-08-21T20:26:05Z")

</div>

Hello,

In kibana 4.0.2 I used to have a visualization that automatically scale the Y axis. Thus, when the number was 10^6 to #M or 10^12 #T. This functionality seemed not to be working in the same visualization ported to Kibana 4.1.

I have manage to apply a script in the advance JSON input of the visualization to force scale the number presented in the Y axis using the documentation presented below and  
enabling dynamic scripting (script.disable\_dynamic: true)

As you could understand I prefer not to enable the dynamic scripting for this type of functionality. I could not find any other adjacent way to do this. Is this a BUG or a known issue?

[https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html#\_enabling\_dynamic\_scripting](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html#_enabling_dynamic_scripting)

All the best,  
Carlos Fernando

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [August 22, 2015, 12:05am UTC](https://discuss.elastic.co/t/kibana-4-1-automatic-axis-scaling/27860/2 "2015-08-22T00:05:50Z")

</div>

To my knowledge, we didn't deprecate any options from 4.0.2 in 4.1. We did move options to a different place in the vis builder though. Are you looking for the "Scale Y-Axis to Data Bounds" option? If not, what was the name of the option in 4.0.2?

 ![](https://us1.discourse-cdn.com/elastic/original/2X/d/da4b62accff07e65346406a2378f16a3bae3aa97.png)

---

<div class="post-metadata">

**Author:** ![Fernando\_Gamboa](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@Fernando\_Gamboa](https://discuss.elastic.co/u/Fernando_Gamboa)\
**Post date:** [August 22, 2015, 1:20am UTC](https://discuss.elastic.co/t/kibana-4-1-automatic-axis-scaling/27860/3 "2015-08-22T01:20:14Z")

</div>

I would like to format the number presented in the Y axis of the visualization in the following way 1M instead of 1000000 or 1k instead of 1000.  
This used to work automatically in 4.0.2

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [August 22, 2015, 1:21pm UTC](https://discuss.elastic.co/t/kibana-4-1-automatic-axis-scaling/27860/4 "2015-08-22T13:21:23Z")

</div>

Gotcha, I thought you were talking about something else.

I'm not sure how you did it in 4.0.2, but starting with 4.1, you should use field formatters to accomplish this:

> **[Field Formatters in Kibana 4.1
	  	 | Elastic](https://www.elastic.co/blog/kibana-4-1-field-formatters)**
>
> One of the new features in Kibana 4.1 that we are really excited about is field formatters. Field formatters allow you to display your data in Kibana the way you prefer to see it, regardless...

---

<div class="post-metadata">

**Author:** ![Fernando\_Gamboa](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@Fernando\_Gamboa](https://discuss.elastic.co/u/Fernando_Gamboa)\
**Post date:** [August 24, 2015, 2:38pm UTC](https://discuss.elastic.co/t/kibana-4-1-automatic-axis-scaling/27860/5 "2015-08-24T14:38:06Z")

</div>

Great, thank you! I confirm I could change the format of the Y axis using the information you have proposed.  
In 4.0.2 I did not have to do anything seems that before was done automatically.

Thank you very much for the quick and helpful feedback.

All the best,  
Carlos Fernando

---

<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 6, 2017, 2:14pm UTC](https://discuss.elastic.co/t/kibana-4-1-automatic-axis-scaling/27860/6 "2017-07-06T14:14:19Z")

</div>


