# Migrating from Dashboard to Dashboard2 with data in Influx

**URL:** <https://discourse.nodered.org/t/migrating-from-dashboard-to-dashboard2-with-data-in-influx/95444>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [16 February 2025 19:59 UTC](https://discourse.nodered.org/t/migrating-from-dashboard-to-dashboard2-with-data-in-influx/95444 "2025-02-16T19:59:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CAG](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@CAG](https://discourse.nodered.org/u/CAG)\
**Post date:** [16 February 2025 19:59 UTC](https://discourse.nodered.org/t/migrating-from-dashboard-to-dashboard2-with-data-in-influx/95444/1 "2025-02-16T19:59:20Z")

</div>

This what I have in Dashboard. I am trying to convert this to Dashboard2. Help on configuring the Dashboard2/Chart node correctly.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/d/2de63f046c89b57965dfc4e47f16be1c4a960cc5.png)  
This the data feeding the chart from InfluxDB after converting into an array... There are 5 temperatures series, the arrays have timescale and temp

2/16/2025, 11:31:46 AM[node: debug 39](http://192.168.2.40:1880/#)msg.payload : array[1]

array[1]  
0: object  
series: array[5]  
0: "Barn Tack Room"  
1: "Barn Thermostat"  
2: "House Sensor"  
3: "Outside Pumpshed"  
4: "Outside Sensor"  
data: array[5]  
0: array[169]  
[0 … 9]  
0: object  
x: 1739131200000  
y: 56.29999999999999  
1: object  
x: 1739134800000  
y: 55.89999999999999  
2: object  
x: 1739138400000  
y: 55.90000000000001

This is the data straight from InfluxDB, using the values that are bold  
2/16/2025, 1:02:27 PM[node: From InfluxDB](http://192.168.2.40:1880/#)msg : Object  
object  
payload: array[485]  
[0 … 9]  
0: object  
result: "\_result"  
table: 0  
\_start: "2025-02-15T21:02:28.207282751Z"  
\_stop: "2025-02-16T21:02:28.207282751Z"  
**\_time: "2025-02-15T21:20:00Z"**  
**\_value: 57.6**  
\_field: "decimal"  
\_measurement: "temperature"  
tag1: "Barn"  
**tag2: "Tack Room"**  
1: object  
result: "\_result"  
table: 0  
\_start: "2025-02-15T21:02:28.207282751Z"  
\_stop: "2025-02-16T21:02:28.207282751Z"  
**\_time: "2025-02-15T21:50:00Z"**  
**\_value: 57.6**  
\_field: "decimal"  
\_measurement: "temperature"  
tag1: "Barn"  
**tag2: "Tack Room"**  
2: object

---

<div class="post-metadata">

**Author:** ![CAG](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@CAG](https://discourse.nodered.org/u/CAG)\
**Post date:** [16 February 2025 22:07 UTC](https://discourse.nodered.org/t/migrating-from-dashboard-to-dashboard2-with-data-in-influx/95444/2 "2025-02-16T22:07:41Z")

</div>

Ok, I have been working on this. It appears that using the data from InfluxDB gets the chart to display. Now I can trying to figure out how to format the X axis.

---

<div class="post-metadata">

**Author:** ![CAG](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@CAG](https://discourse.nodered.org/u/CAG)\
**Post date:** [16 February 2025 23:26 UTC](https://discourse.nodered.org/t/migrating-from-dashboard-to-dashboard2-with-data-in-influx/95444/3 "2025-02-16T23:26:24Z")

</div>

ok, I figured it all out. I will leave so it might help others.  
So a recap -  
use the data straight from InfluxDB.  
You might need to combine tags, I did.  
Use the "key" for series, x and y values.  
here is the code I used to combine tags, use a function node. There might be better ways but I could figure out how to do it in the Chart node, which would have been nice.

```auto
let arr = msg.payload; // Assuming the array is in msg.payload

for (let i = 0; i < arr.length; i++) {
    arr[i].combinedTag = arr[i].tag1 + " " + arr[i].tag2; // Combine tag1 and tag2
}

msg.payload = arr;
return msg;

```

---

<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:** [2 March 2025 23:26 UTC](https://discourse.nodered.org/t/migrating-from-dashboard-to-dashboard2-with-data-in-influx/95444/4 "2025-03-02T23:26:30Z")

</div>

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