Hello I have trouble with showing values on chart. Chart is empty. I run out of ideas.
Point is one of 3000. y value goes to 10 and x value is time from 0:0:0 to 23:59:59
{"x":"14:46:48","y":0}
Hello I have trouble with showing values on chart. Chart is empty. I run out of ideas.
Point is one of 3000. y value goes to 10 and x value is time from 0:0:0 to 23:59:59
{"x":"14:46:48","y":0}
Please indicate via the thread's tags whether this is for Dashboard 1 or 2. Thanks.
@Sekuti's screen capture shows Class and Name at the bottom of the popup, thus it's the original, node-red-dashboard.
The original dashboard is picky about it's input data structure.
Can you capture the entire message payload (using a Write file node?), edit it, deleting about 2995 of the 3000 data points before sharing it here?
[{"labels":["01"],
"series":["2-Izmena"],
"data":[[{"x":"13:18:11","y":11.1},{"x":"13:18:18","y":11.38},{"x":"13:18:28","y":10.75},{"x":"13:18:38","y":10.74},{"x":"13:18:48","y":10.68},{"x":"13:18:58","y":10.87},{"x":"13:19:8","y":10.41},{"x":"13:19:18","y":10.68}]]}]
Problem now is that x scale always starts with current hour and offcourse chart is empty
I suspect the chart node cannot understand your x value strings "hh:mm:ss".
Specify your x values as either a javascript timestamp or Date object rather than a string.
[{"labels":["01"],"series":["2-Izmena"],"data":[[{"x":"2026-2-16","y":44.45},{"x":"2026-2-17","y":93.49},{"x":"2026-2-18","y":79.38}]]}]
[{"labels":["01"],"series":["2-Izmena"],"data":[[{"x":"13:18:11","y":11.1},{"x":"13:18:18","y":11.38},{"x":"13:18:28","y":10.75}]]}]
upper post represents two data. One is working and other not. The only diferent is that for one I use year-Month-Date and on the other HH:mm:ss
This data works for me, after sending an empty array to clear the chart.
[
{
"labels": [
"01"
],
"series": [
"2-Izmena"
],
"data": [
[
{
"x": "2026-02-18T13:18:11",
"y": 11.1
},
{
"x": "2026-02-18T13:18:18",
"y": 11.38
},
{
"x": "2026-02-18T13:18:28",
"y": 10.75
},
{
"x": "2026-02-18T13:18:38",
"y": 10.74
},
{
"x": "2026-02-18T13:18:48",
"y": 10.68
},
{
"x": "2026-02-18T13:18:58",
"y": 10.87
},
{
"x": "2026-02-18T13:19:08",
"y": 10.41
},
{
"x": "2026-02-18T13:19:18",
"y": 10.68
}
]
]
}
]
I (arbitrarily) made each of your hh:mm:ss values into a datetime for yesterday.
I also tweeked the "13:19:8" value to "13:19:08"
The chart can understand your data eg "2026-2-15" (as midnight on the given date).
I believe that a javascript timestamp is a better option than a date time string.