# Developing UI chart from an array

**URL:** <https://discourse.nodered.org/t/developing-ui-chart-from-an-array/8809>\
**Category:** General\
**Created:** [10 March 2019 14:23 UTC](https://discourse.nodered.org/t/developing-ui-chart-from-an-array/8809 "2019-03-10T14:23:38Z")\
**Posts on this page:** 3\
**Page:** 2

<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:** [13 March 2019 12:28 UTC](https://discourse.nodered.org/t/developing-ui-chart-from-an-array/8809/21 "2019-03-13T12:28:45Z")

</div>

Note that you have provided several days worth of data and the chart is very narrow. The x axis grid lines are showing timestamps for once a day but because the chart is so narrow it has not even showing one grid line for each day. Apart from that everything is working as it should. Make the chart much wider and all will become clear. I believe you can format the x axis legends to include the date if that is what you want.  
Arguably there is an issue with the chart node as you have configured it for 24 hours so when you provide three days worth of data perhaps it should only show the last 24 hours.

---

<div class="post-metadata">

**Author:** ![Sirhc](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@Sirhc](https://discourse.nodered.org/u/Sirhc)\
**Post date:** [13 March 2019 12:45 UTC](https://discourse.nodered.org/t/developing-ui-chart-from-an-array/8809/22 "2019-03-13T12:45:26Z")

</div>

Ahhh! Very good, that worked great!

I've changed the format to custom and listed "DD/MM HH:mm"

Is there any way to put DD/MM and HH:mm on two different lines in the chart for the X-axis?

---

<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:** [13 March 2019 13:38 UTC](https://discourse.nodered.org/t/developing-ui-chart-from-an-array/8809/23 "2019-03-13T13:38:59Z")

</div>

sorry - not that I know of.

[Previous page](https://discourse.nodered.org/t/developing-ui-chart-from-an-array/8809.md?page=1)
