Ui-chart line point missing

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:

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:

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

    serie_tletto = {
        "tipo": "Letto",
        "giorno": giorno,
        "valore": t_letto[i]
    };
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:

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)

Yes, of course the debug shows the same informations.
On github at this link there is the flow and how to reproduce this problem.
If it in non enough, I can add aother informations.
Thanks a lot.

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