# Dashboard 2 - best format to use for timeseries data

**URL:** https://discourse.nodered.org/t/dashboard-2-best-format-to-use-for-timeseries-data/82862
**Category:** Dashboard
**Tags:** dashboard-2
**Created:** [14 November 2023 20:06 UTC](https://discourse.nodered.org/t/dashboard-2-best-format-to-use-for-timeseries-data/82862 "2023-11-14T20:06:42Z")
**Posts on this page:** 11
**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: [11 December 2023 09:39 UTC](https://discourse.nodered.org/t/dashboard-2-best-format-to-use-for-timeseries-data/82862/21 "2023-12-11T09:39:34Z")

</div>

> [@jbudd](#):
>
> Importing them both did result in a complaint "We currently do not support multiple ui-base nodes in a single flow".

Edit the Page node and point it to your original ui-base, then in Configuration Nodes you will be able to delete the now unused one.

---

<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: [11 December 2023 09:44 UTC](https://discourse.nodered.org/t/dashboard-2-best-format-to-use-for-timeseries-data/82862/22 "2023-12-11T09:44:35Z")

</div>

> [@jbudd](#):
>
> It's a dashboard (ui-base?). Why doesn't it call itself something meaningful to the example?

If you edit a page using that ui-base then you can open the ui-base and call it what you like. I guess that the imported flow had that as its ui-base name. Or you can find it in Configuration nodes and rename it there.

---

<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: [11 December 2023 09:57 UTC](https://discourse.nodered.org/t/dashboard-2-best-format-to-use-for-timeseries-data/82862/23 "2023-12-11T09:57:08Z")

</div>

> [@Colin](#):
>
> you can open the ui-base and call it what you like. I guess that the imported flow had that as its ui-base name.

Thanks Colin.

This is an example flow and since D2 is not yet released, the example must by definition be aimed at beginners.  
I suppose I wanted to stimulate discussion about how helpful the help should be to those not already familiar with the jargon.  
If an example presents "weather data" then surely it should be called "Weather Example" rather than "Discourse Forums"?  
Edit - Maybe "Weather Example" is at a lower level than ui-base, so "Dashboard2 Example" would be better.

A significant part of my confusion arises from not yet knowing what a ui-base is. I'm starting to think it would be better named ui-url or even ui-browsertab

---

<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: [11 December 2023 10:03 UTC](https://discourse.nodered.org/t/dashboard-2-best-format-to-use-for-timeseries-data/82862/24 "2023-12-11T10:03:50Z")

</div>

OK, I see now that you mean it is the example that should have it as a different name.

> [@jbudd](#):
>
> A significant part of my confusion arises from not yet knowing what a ui-base is

Certainly there is a lot of work to do on the docs still.

---

<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: [11 December 2023 10:39 UTC](https://discourse.nodered.org/t/dashboard-2-best-format-to-use-for-timeseries-data/82862/25 "2023-12-11T10:39:55Z")

</div>

As usual. Pull requests that help improve docs are just as valid as code contributions. (And help take the load off Joe so he can implement all the missing pieces we all want 🙂 )

---

<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: [11 December 2023 10:42 UTC](https://discourse.nodered.org/t/dashboard-2-best-format-to-use-for-timeseries-data/82862/26 "2023-12-11T10:42:44Z")

</div>

> [@joepavitt](#):
>
> Yes, you can just use nested property, e.g. `"data.instant.details.air_temperature"` as your `y` property, although would need to the incoming payload as `msg.payload = msg.payload.properties.timeseries`

Thanks @joepavitt, that's promising! It's delightful not to have to loop through the API output setting x,y coordinates for each point.  
This flow

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/5/b56ccbab11d4050aaca91015e5afde1d6ec2f413.png)  
gives me this result  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/2/52c2e1d789224ae8e25bec2fb8fd70ab01284af8.png)

Why does the line return from the last datum to the first?  
The chart node has a "Label" (front-end label) property but no "Name" property, unlike D1 widgets. Is this a deliberate decision?

Next step - two lines on the same chart... Temperature at two locations or Temperature, Humidity at one location. Decisions decisions...

---

<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: [11 December 2023 11:06 UTC](https://discourse.nodered.org/t/dashboard-2-best-format-to-use-for-timeseries-data/82862/27 "2023-12-11T11:06:10Z")

</div>

> [@jbudd](#):
>
> Why does the line return from the last datum to the first?

Did that happpen when you re-drew the chart? If so then there is an issue for that [Chart: Append/Replace Data Option · Issue #358 · FlowFuse/node-red-dashboard · GitHub](https://github.com/FlowFuse/node-red-dashboard/issues/358)

For the moment, send the chart an empty array to clear it before re-drawing.

---

<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: [11 December 2023 11:11 UTC](https://discourse.nodered.org/t/dashboard-2-best-format-to-use-for-timeseries-data/82862/28 "2023-12-11T11:11:29Z")

</div>

Yes, it happens on a second inject. Thanks.

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [11 December 2023 12:07 UTC](https://discourse.nodered.org/t/dashboard-2-best-format-to-use-for-timeseries-data/82862/29 "2023-12-11T12:07:57Z")

</div>

> [@jbudd](#):
>
> Next step - two lines on the same chart... Temperature at two locations or Temperature, Humidity at one location. Decisions Decisions

The difficulty in putting humidity in the same chart is that humidity could be 95%, whilst temperature (in the UK!) Is likely to be no more than 10C, so the chart would scale to the largest number, and the temperature would just be a straight line just above the x-axis.  
Hopefully at some later stage in development, we'll be able to use left & right y axis, and scale them each accordingly.

---

<div class="post-metadata">

### Author: ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)
#### Post date: [12 December 2023 10:14 UTC](https://discourse.nodered.org/t/dashboard-2-best-format-to-use-for-timeseries-data/82862/30 "2023-12-12T10:14:44Z")

</div>

> [@jbudd](#):
>
> It's delightful not to have to loop through the API output setting x,y coordinates for each point.

Thanks for the feedback, as an avid user of Dashboard 1.0 charts, it as one of the features I was most desperate to get working when I started on this project.

As @Colin kindly answered for me - you're experience the append/replace problem.

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [26 December 2023 10:15 UTC](https://discourse.nodered.org/t/dashboard-2-best-format-to-use-for-timeseries-data/82862/31 "2023-12-26T10:15:33Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/dashboard-2-best-format-to-use-for-timeseries-data/82862.md?page=1)
