# How to plot JSON data in UI\_Chart?

**URL:** <https://discourse.nodered.org/t/how-to-plot-json-data-in-ui-chart/74311>\
**Category:** General\
**Tags:** node-red-dashboard\
**Created:** [28 January 2023 17:24 UTC](https://discourse.nodered.org/t/how-to-plot-json-data-in-ui-chart/74311 "2023-01-28T17:24:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![windpoint](https://avatars.discourse-cdn.com/v4/letter/w/ecc23a/32.png) [@windpoint](https://discourse.nodered.org/u/windpoint)\
**Post date:** [28 January 2023 17:24 UTC](https://discourse.nodered.org/t/how-to-plot-json-data-in-ui-chart/74311/1 "2023-01-28T17:24:50Z")

</div>

I am trying to use time from json date for x axis, not the time stamp  
I publish 24 items in the json structure, which is 24 hours  
Thank you

data example:  
01/28/2023 01:00:00: -14  
01/28/2023 02:00:00: -12.8  
01/28/2023 03:00:00: -11.3  
01/28/2023 04:00:00: -11.8  
01/28/2023 05:00:00: -8.8  
01/28/2023 06:00:00: 1.1  
01/28/2023 07:00:00: 3.8  
01/28/2023 08:00:00: 18.2  
01/28/2023 09:00:00: 20.3

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [28 January 2023 17:33 UTC](https://discourse.nodered.org/t/how-to-plot-json-data-in-ui-chart/74311/2 "2023-01-28T17:33:12Z")

</div>

> [@windpoint](#):
>
> 1/28/2023 01:00:00: -14  
> 01/28/2023 02:00:00: -12.8  
> 01/28/2023 03:00:00: -11.3  
> 01/28/2023 04:00:00: -11.8  
> 01/28/2023 05:00:00: -8.8  
> 01/28/2023 06:00:00: 1.1  
> 01/28/2023 07:00:00: 3.8  
> 01/28/2023 08:00:00: 18.2  
> 01/28/2023 09:00:00: 20.3

This is not a JSON.  
It would also help to store your timestamps as unix or ISO.

p.s. Try searching the forum for chart, i am sure there was a similar question in las 30 days.

---

<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:** [29 March 2023 17:34 UTC](https://discourse.nodered.org/t/how-to-plot-json-data-in-ui-chart/74311/3 "2023-03-29T17:34:11Z")

</div>

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