# Ui-chart line point missing

**URL:** <https://discourse.nodered.org/t/ui-chart-line-point-missing/91090>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [19 September 2024 05:44 UTC](https://discourse.nodered.org/t/ui-chart-line-point-missing/91090 "2024-09-19T05:44:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaetano](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gaetano/32/81395_2.png) [@Gaetano](https://discourse.nodered.org/u/Gaetano)\
**Post date:** [19 September 2024 05:44 UTC](https://discourse.nodered.org/t/ui-chart-line-point-missing/91090/1 "2024-09-19T05:44:50Z")

</div>

I am experiencing some problems in representing lines using the ui-chart node.  
It is a very similar problem to the one encountered with the bars: the second element of the series to be represented is not displayed.  
The workaround I found is the same as the problem with the bars: repeat twice the msg.payload that contains the data to be displayed.

Let me give an example:  
a chart node is configured in this way:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/3/03874074ccbb7acbb0281580dacc89699b050208.png)

A function preceding the ui-chart node prepares the data to be displayed and sends them by preparing a msg.payload and then node.send(msg); if the function sends only one msg.payload, the result is the following:

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

The data is prepared and sent like this (same thing for other series):

```auto
    serie_tletto = {
        "tipo": "Letto",
        "giorno": giorno,
        "valore": t_letto[i]
    };

```

```auto
msg.payload = [serie_tcrono, serie_tsalone, serie_tlibreria, serie_tcameretta, serie_tletto, serie_tstudio];
node.send(msg);

```

If instead I add a node.send(msg) immediately after the previous one, I get:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/2/0212b852eb62d3521f2bbd3ebaee4cff8698677c.png)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [19 September 2024 07:54 UTC](https://discourse.nodered.org/t/ui-chart-line-point-missing/91090/2 "2024-09-19T07:54:41Z")

</div>

Have you added a `debug` node to the output of the `function` node to check the data being sent the first time against the second time?

Can you replicate the issue in a small flow to demonstrate the issue? If so export the flow and attach it to a reply so people can check it out. (make sure the data is not confidential, make it up)

---

<div class="post-metadata">

**Author:** ![Gaetano](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gaetano/32/81395_2.png) [@Gaetano](https://discourse.nodered.org/u/Gaetano)\
**Post date:** [19 September 2024 08:14 UTC](https://discourse.nodered.org/t/ui-chart-line-point-missing/91090/3 "2024-09-19T08:14:22Z")

</div>

Yes, of course the debug shows the same informations.  
On github at this [link](https://github.com/FlowFuse/node-red-dashboard/issues/1308) there is the flow and how to reproduce this problem.  
If it in non enough, I can add aother informations.  
Thanks a lot.

---

<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:** [19 October 2024 08:14 UTC](https://discourse.nodered.org/t/ui-chart-line-point-missing/91090/4 "2024-10-19T08:14:45Z")

</div>

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