diff --git a/src/components/charts/Column.jsx b/src/components/charts/Column.jsx index a278b7e..4be6328 100644 --- a/src/components/charts/Column.jsx +++ b/src/components/charts/Column.jsx @@ -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 })