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: