Обрезка числа точек поправлена

This commit is contained in:
goodmice 2021-11-12 16:00:57 +05:00
parent 274c56dcf7
commit 7a95007f44

View File

@ -67,7 +67,7 @@ export const Column = ({ lineGroup, data, postParsing, interval, yDisplay, yStar
if(points?.length > 2)
points.sort((a,b) => a.y > b.y ? 1 : -1)
if(points.length > pointCount)
points.splice(0, (pointCount - points.length))
points.splice(0, points.length - pointCount)
dataset.data = points
})