# Line chart date value is messed up

**URL:** <https://discourse.nodered.org/t/line-chart-date-value-is-messed-up/25840>\
**Category:** Dashboard\
**Created:** [1 May 2020 00:01 UTC](https://discourse.nodered.org/t/line-chart-date-value-is-messed-up/25840 "2020-05-01T00:01:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beefy\_carrot](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@Beefy\_carrot](https://discourse.nodered.org/u/Beefy_carrot)\
**Post date:** [1 May 2020 00:01 UTC](https://discourse.nodered.org/t/line-chart-date-value-is-messed-up/25840/1 "2020-05-01T00:01:24Z")

</div>

Im changing the values for line chart, ymin and ymax works fine. but when i use xformat to change the y axis, things start to mess up. User can change the formats HH:mm:ss and HH:mm but when i use Day :HH:mm and Date/Month i get a wierd format

Picture here :

 ![chrome_cYjxKZ31fX](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/2/72b004cba47323c4bb7be4a3b0c2fdcc69f24607.png) ![chrome_cYjxKZ31fX](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/2/72b004cba47323c4bb7be4a3b0c2fdcc69f24607.png)

does anyone know why ?

---

<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:** [1 May 2020 07:13 UTC](https://discourse.nodered.org/t/line-chart-date-value-is-messed-up/25840/2 "2020-05-01T07:13:28Z")

</div>

How exactly are you setting those ? You need to use moment templates as per link in info bar

---

<div class="post-metadata">

**Author:** ![Beefy\_carrot](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@Beefy\_carrot](https://discourse.nodered.org/u/Beefy_carrot)\
**Post date:** [1 May 2020 15:16 UTC](https://discourse.nodered.org/t/line-chart-date-value-is-messed-up/25840/3 "2020-05-01T15:16:35Z")

</div>

I use, msg.ui.control = {"ymin":ymin} in a function that sends data to the linechart node

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [1 May 2020 19:20 UTC](https://discourse.nodered.org/t/line-chart-date-value-is-messed-up/25840/4 "2020-05-01T19:20:43Z")

</div>

> [@Beefy\_carrot](#):
>
> msg.ui.control = {"ymin":ymin}

This is not correct in any terms.  
To send options to chart node the property name is `ui_control`.  
Read carefully this document to understand how the runtime configuration change works for dashboard elements . [node-red-dashboard/config-fields.md at master · node-red/node-red-dashboard · GitHub](https://github.com/node-red/node-red-dashboard/blob/master/config-fields.md)

---

<div class="post-metadata">

**Author:** ![Beefy\_carrot](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@Beefy\_carrot](https://discourse.nodered.org/u/Beefy_carrot)\
**Post date:** [1 May 2020 19:56 UTC](https://discourse.nodered.org/t/line-chart-date-value-is-messed-up/25840/5 "2020-05-01T19:56:53Z")

</div>

i intended to write msg.ui\_control. all the other functions work great. just not the Day/Month and Day HH:mm

---

<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:** [1 May 2020 20:26 UTC](https://discourse.nodered.org/t/line-chart-date-value-is-messed-up/25840/6 "2020-05-01T20:26:07Z")

</div>

If you use ui\_control you have to use the moment template style

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [31 May 2020 20:26 UTC](https://discourse.nodered.org/t/line-chart-date-value-is-messed-up/25840/7 "2020-05-31T20:26:08Z")

</div>

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