We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4129e58 commit 03f94e1Copy full SHA for 03f94e1
openc3-cosmos-init/plugins/packages/openc3-vue-common/src/components/Graph.vue
@@ -1784,6 +1784,15 @@ export default {
1784
}
1785
1786
1787
+
1788
+ // Enforce pointsSaved limit - remove oldest data points if exceeded
1789
+ if (this.pointsSaved > 0 && this.data[0].length > this.pointsSaved) {
1790
+ const pointsToRemove = this.data[0].length - this.pointsSaved
1791
+ for (let j = 0; j < this.data.length; j++) {
1792
+ this.data[j].splice(0, pointsToRemove)
1793
+ }
1794
1795
1796
// If we weren't passed a startTime notify grapher of our start
1797
if (this.startTime == null && this.data[0][0]) {
1798
let newStartTime = this.data[0][0] * 1_000_000_000
0 commit comments