# Multiline in Dashboard 2.0

**URL:** https://discourse.nodered.org/t/multiline-in-dashboard-2-0/95520
**Category:** Dashboard
**Created:** [19 February 2025 14:51 UTC](https://discourse.nodered.org/t/multiline-in-dashboard-2-0/95520 "2025-02-19T14:51:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tmessers](https://avatars.discourse-cdn.com/v4/letter/t/df705f/32.png) [@tmessers](https://discourse.nodered.org/u/tmessers)
#### Post date: [19 February 2025 14:51 UTC](https://discourse.nodered.org/t/multiline-in-dashboard-2-0/95520/1 "2025-02-19T14:51:20Z")

</div>

Hi folks,  
i am dealing with a problem for hours but i can not get a solution.

The problem:

I do have two object as the result of 2 querys in two different databases.  
i change the `msg.topic` with a change-node to the topics, displayed in the query results.

query 1 result

```auto
{"_msgid":"953a3907092f24cd","payload":[{"date":"2025-02-18T23:00:00.000Z","wert":0.49},{"date":"2025-02-19T03:25:00.000Z","wert":0.49},
{"date":"2025-02-19T13:50:00.000Z","wert":360.41},{"date":"2025-02-19T13:55:00.000Z","wert":363.44},{"date":"2025-02-19T14:00:00.000Z","wert":362.79},{"date":"2025-02-19T14:05:00.000Z","wert":369.39},{"date":"2025-02-19T14:10:00.000Z","wert":330.51},{"date":"2025-02-19T14:15:00.000Z","wert":321.89},{"date":"2025-02-19T14:20:00.000Z","wert":349.53},{"date":"2025-02-19T14:25:00.000Z","wert":336.25},{"date":"2025-02-19T14:30:00.000Z","wert":325.05}],
"topic":"leistung"}

```

query 2 result:

```auto
{"_msgid":"953a3907092f24cd","payload":
[{"date":"2025-02-18T23:00:00.000Z","wert":0},
{"date":"2025-02-19T08:30:00.000Z","wert":148},{"date":"2025-02-19T09:00:00.000Z","wert":189},{"date":"2025-02-19T09:30:00.000Z","wert":221},{"date":"2025-02-19T10:00:00.000Z","wert":332},{"date":"2025-02-19T10:30:00.000Z","wert":359},{"date":"2025-02-19T11:00:00.000Z","wert":415},{"date":"2025-02-19T11:30:00.000Z","wert":494},{"date":"2025-02-19T12:00:00.000Z","wert":535},{"date":"2025-02-19T12:30:00.000Z","wert":543},{"date":"2025-02-19T13:00:00.000Z","wert":516},{"date":"2025-02-19T13:30:00.000Z","wert":488},{"date":"2025-02-19T14:00:00.000Z","wert":416},{"date":"2025-02-19T14:30:00.000Z","wert":366}],
"topic":"globalstrahlung"}

```

Putting both results i the chart-node, just displays one line, not both.

I shortened the results here.  
I want to display both values in "wert" in two different lines in a dashboard 2.0 chart.  
Do i have to transform the results in a different structure or is it a question of adjusting the chart-node?

Does anyone have a hint?  
Thanks

---

<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: [19 February 2025 15:11 UTC](https://discourse.nodered.org/t/multiline-in-dashboard-2-0/95520/2 "2025-02-19T15:11:09Z")

</div>

[/quote]

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/9/498d321d540ec0b5ebc7a840f661ed6f22bb7c2e.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/d/eda71da563da1cdb92be701f5db3c1bab65fa61c.png)

I think you need to tick "Append" not "Replace" too, and always send an empty array , then the first data set, then the second.

---

<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: [21 March 2025 15:12 UTC](https://discourse.nodered.org/t/multiline-in-dashboard-2-0/95520/3 "2025-03-21T15:12:10Z")

</div>

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