Hello,
I am trying to build a ui_chart in Node-Red 1.2.6 and Dashboard 2.24.1 but I'm having troubles with the X-Axis scale. I'm only seeing the last ~2 hours of data appear in the X-axis, when the x-coordinates are passed as timestamps. What I expect to see is the full range of x-axis values, which typically span about 10 hours.
The confusing thing is that I have many devices running this exact code and so I can confirm it works in the following other versions:
- Node-Red v0.20.5 with Dashboard 2.15.5
- Node-Red v1.1.2 with Dashboard 2.23.0
Here's an example of a message that I'm passing into the node-red-dashboard:ui_chart node:
{
"topic": "screen_refresh",
"_msgid": "71792fdf.38ad",
"_event": "node:21dc8520.ba973a",
"payload": [{
"series": ["Planned", "Actual"],
"data": [[{
"x": 1612360815216,
"y": 41
}, {
"x": 1612364402965,
"y": 41
}, {
"x": 1612368015214,
"y": 34
}, {
"x": 1612371603412,
"y": 41
}, {
"x": 1612375215212,
"y": 27
}, {
"x": 1612378803858,
"y": 41
}, {
"x": 1612382415214,
"y": 34
}, {
"x": 1612384796774,
"y": 27
}, {
"x": 1612385180922,
"y": 0
}
], [{
"x": 1612360815216,
"y": 25
}, {
"x": 1612364402965,
"y": 40
}, {
"x": 1612368015214,
"y": 36
}, {
"x": 1612371603412,
"y": 48
}, {
"x": 1612375215212,
"y": 33
}, {
"x": 1612378803858,
"y": 48
}, {
"x": 1612382415214,
"y": 34
}, {
"x": 1612384796774,
"y": 8
}, {
"x": 1612385180922,
"y": 0
}
]],
"labels": [""]
}
],
"ui_control": {
"ymin": 0,
"ymax": 50,
"xmin": 1612360815216,
"xmax": 1612385180922,
"look": "line",
"xformat": "h a",
"interpolate": "linear",
"nodata": "Waiting for Data",
"dot": true,
"legend": "true"
},
"chartTitle": "Planned vs Actual Run Chart"
}