# Msg ui property Y axis scale

**URL:** <https://discourse.nodered.org/t/msg-ui-property-y-axis-scale/9634>\
**Category:** Dashboard\
**Created:** [31 March 2019 13:18 UTC](https://discourse.nodered.org/t/msg-ui-property-y-axis-scale/9634 "2019-03-31T13:18:21Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![accca](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@accca](https://discourse.nodered.org/u/accca)\
**Post date:** [31 March 2019 13:18 UTC](https://discourse.nodered.org/t/msg-ui-property-y-axis-scale/9634/1 "2019-03-31T13:18:21Z")

</div>

It is possible to decide the scale of Y-axis in a chart, e.g. line chart?

Maybe sending some msg.ui\_property messages?

Thanks

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [31 March 2019 14:52 UTC](https://discourse.nodered.org/t/msg-ui-property-y-axis-scale/9634/2 "2019-03-31T14:52:12Z")

</div>

yes as described in the docs

---

<div class="post-metadata">

**Author:** ![accca](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@accca](https://discourse.nodered.org/u/accca)\
**Post date:** [31 March 2019 15:25 UTC](https://discourse.nodered.org/t/msg-ui-property-y-axis-scale/9634/3 "2019-03-31T15:25:19Z")

</div>

sorry...what docs...I didnt find them on web

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [31 March 2019 15:42 UTC](https://discourse.nodered.org/t/msg-ui-property-y-axis-scale/9634/4 "2019-03-31T15:42:00Z")

</div>

find the node on [flows.nodered.org](http://flows.nodered.org) then follow the config-fields.md link in the text

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [31 March 2019 15:47 UTC](https://discourse.nodered.org/t/msg-ui-property-y-axis-scale/9634/5 "2019-03-31T15:47:14Z")

</div>

In the config for the chart there are Y Max and Y Min fields.

---

<div class="post-metadata">

**Author:** ![accca](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@accca](https://discourse.nodered.org/u/accca)\
**Post date:** [31 March 2019 15:56 UTC](https://discourse.nodered.org/t/msg-ui-property-y-axis-scale/9634/6 "2019-03-31T15:56:54Z")

</div>

Not min and max...the scale

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [31 March 2019 16:11 UTC](https://discourse.nodered.org/t/msg-ui-property-y-axis-scale/9634/7 "2019-03-31T16:11:43Z")

</div>

you need to describe what you mean. As to me if you define the min max you define the scale.

---

<div class="post-metadata">

**Author:** ![accca](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@accca](https://discourse.nodered.org/u/accca)\
**Post date:** [31 March 2019 16:13 UTC](https://discourse.nodered.org/t/msg-ui-property-y-axis-scale/9634/8 "2019-03-31T16:13:42Z")

</div>

I have this y-axis

![Cattura](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/8/8b5c3f7a5495b105a4c080c4782504125d87c621.jpeg)

I want a step of 1, I dont want 2.5, 3.75, 1.25....

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [31 March 2019 20:23 UTC](https://discourse.nodered.org/t/msg-ui-property-y-axis-scale/9634/9 "2019-03-31T20:23:58Z")

</div>

currently that isn't possible. You can set min and max - but it then auto generates the "ticks". There is possibly an option to set it to be integers only - but that would then not work if the scale was (for example) 0 to 1. You may be able to change the max suitably to make the ticks fit more how you want.

---

<div class="post-metadata">

**Author:** ![accca](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@accca](https://discourse.nodered.org/u/accca)\
**Post date:** [1 April 2019 07:17 UTC](https://discourse.nodered.org/t/msg-ui-property-y-axis-scale/9634/10 "2019-04-01T07:17:54Z")

</div>

thak you for the exhaustive response

---

<div class="post-metadata">

**Author:** ![Sctn4Elk](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sctn4elk/32/23388_2.png) [@Sctn4Elk](https://discourse.nodered.org/u/Sctn4Elk)\
**Post date:** [5 June 2020 15:54 UTC](https://discourse.nodered.org/t/msg-ui-property-y-axis-scale/9634/11 "2020-06-05T15:54:47Z")

</div>

I know this is a resurrection of a year old thread, but has this been solved? I see that Node-Red is using the directives from this library ([Angularjs-nvd3-directives](https://angularjs-nvd3-directives.github.io/angularjs-nvd3-directives/line.chart.html)) and that library offers the ability to change the Y Axis Tick style with the property yAxisTickFormat.

My chart data has values like x.xx and the Y axis label reflects that, but I'd like to format the label to x.x without actually changing my inout data.
