# Time stamp on X and Y axis in Dashboard Chart

**URL:** <https://discourse.nodered.org/t/time-stamp-on-x-and-y-axis-in-dashboard-chart/35951>\
**Category:** Dashboard\
**Created:** [15 November 2020 13:28 UTC](https://discourse.nodered.org/t/time-stamp-on-x-and-y-axis-in-dashboard-chart/35951 "2020-11-15T13:28:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishakraj](https://avatars.discourse-cdn.com/v4/letter/v/9dc877/32.png) [@vishakraj](https://discourse.nodered.org/u/vishakraj)\
**Post date:** [15 November 2020 13:28 UTC](https://discourse.nodered.org/t/time-stamp-on-x-and-y-axis-in-dashboard-chart/35951/1 "2020-11-15T13:28:49Z")

</div>

Hello,

I am using chart in node red dashboard, In default, the X-Axis is the time series, and Y-axis is for other values.

In my task, I have to show the start time and also the finishing time of a series works, I am thinking to plot the start time in X-Axis and finishing time in Y-Axis.

The time is a string variable like, 2020-10-20 12:22:30

I separated and changed to time stamp using

```auto
    ts = new Date(year_var, parseInt(month_var, 10)-1, date_var, hour, minutes, seconds).getTime();
    return ts;

```

The X-Axis is worked well, shows the times correctly, But, the Y-Axis label shows as timestamp in the chart, I need to change the Y-axis labels from timestamp to normal time format(HH:MM:SS) as like in X-axis. How to do that, thanks

Here is the chart plotted in the dashboard,  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/5/556abd10b96e4edfc863223b509e4b91e8f75835.png)

---

<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:** [15 December 2020 13:28 UTC](https://discourse.nodered.org/t/time-stamp-on-x-and-y-axis-in-dashboard-chart/35951/2 "2020-12-15T13:28:53Z")

</div>

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