diff --git a/src/pages/TelemetryView/Column.jsx b/src/pages/TelemetryView/Column.jsx index 37b4617..f972c8f 100644 --- a/src/pages/TelemetryView/Column.jsx +++ b/src/pages/TelemetryView/Column.jsx @@ -101,14 +101,14 @@ export const Column = ({ lineGroup, data, flowChartData, interval, showBorder, s }) }) - preDataParams.yStart = new Date() - preDataParams.yStart.setSeconds(preDataParams.yStart.getSeconds() - interval) + preDataParams.yStart = new Date(Math.max(new Date(dataLast.date), preDataParams.yStart ?? new Date(0))) + preDataParams.yStart.setSeconds(preDataParams.yStart.getSeconds() - interval * 0.97) preDataParams.yInterval = interval preDataParams.displayLabels = yDisplay ?? false return {...preDataParams} }) - }, [data, lineGroup, interval, yDisplay, flowChartData]) + }, [data, lineGroup, interval, yDisplay, flowChartData, dataLast]) return (