# Ui\_chart how do i start the chart at a specific time (Start midnight every day)

**URL:** <https://discourse.nodered.org/t/ui-chart-how-do-i-start-the-chart-at-a-specific-time-start-midnight-every-day/75838>\
**Category:** Dashboard\
**Created:** [27 February 2023 22:13 UTC](https://discourse.nodered.org/t/ui-chart-how-do-i-start-the-chart-at-a-specific-time-start-midnight-every-day/75838 "2023-02-27T22:13:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joachim](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@Joachim](https://discourse.nodered.org/u/Joachim)\
**Post date:** [27 February 2023 22:13 UTC](https://discourse.nodered.org/t/ui-chart-how-do-i-start-the-chart-at-a-specific-time-start-midnight-every-day/75838/1 "2023-02-27T22:13:20Z")

</div>

Hi there,  
I'm using the ui chart from node-red-dashboard version 3.2.3  
I get power readings from my power meter.  
In the chart i chose Data for one day to see the power over a hole day.  
How can I make the chart always start at 00:00 hours?

Thanks for your help!!  
jo

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [27 February 2023 22:22 UTC](https://discourse.nodered.org/t/ui-chart-how-do-i-start-the-chart-at-a-specific-time-start-midnight-every-day/75838/2 "2023-02-27T22:22:47Z")

</div>

Use an inject node to send an empty array to the chart at midnight.

Oddly, to inject an array you use JSON input type - like this  
 ![Untitled 1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/6/f6647e352928c42e86889e5f7db446ea035358cf.jpeg)

---

<div class="post-metadata">

**Author:** ![Joachim](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@Joachim](https://discourse.nodered.org/u/Joachim)\
**Post date:** [28 February 2023 10:46 UTC](https://discourse.nodered.org/t/ui-chart-how-do-i-start-the-chart-at-a-specific-time-start-midnight-every-day/75838/3 "2023-02-28T10:46:04Z")

</div>

Thank you so much. It clears the chart. Is it possible to initialize the x-axis directly with an 24h axis so the chart does not get build up as data come in, but the axis is already set?  
Thank you!

---

<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:** [30 March 2023 10:47 UTC](https://discourse.nodered.org/t/ui-chart-how-do-i-start-the-chart-at-a-specific-time-start-midnight-every-day/75838/4 "2023-03-30T10:47:01Z")

</div>

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