diff --git a/public/js/appChart.js b/public/js/appChart.js
index af9855173765194e4212d15d1be14aa287cf055d..2c925e9e5d96980343f5c9eaabd2517ea7d54416 100644
--- a/public/js/appChart.js
+++ b/public/js/appChart.js
@@ -869,6 +869,29 @@ const formatSTAResponseForScatterPlot = function (obsArrayOne, obsArrayTwo) {
     missingTimestamp,
     obsArrayOneTimestamp
   );
+
+  /**
+   *
+   * @param {*} missingIndexesArr An array of the indexes of the observations missing from the second set of observations
+   * @param {*} obsOneArr An array of the first set of observations (timestamp + value)
+   * @returns {undefined}
+   */
+  const removeMissingObservationFromFirstArray = function (
+    missingIndexesArr,
+    obsOneArr
+  ) {
+    missingIndexesArr.forEach((index) => {
+      if (index > -1) {
+        obsOneArr.splice(index, 1);
+      }
+    });
+  };
+
+  removeMissingObservationFromFirstArray(
+    indexesMissingObsArr,
+    obsArrayOneChecked
+  );
+  console.log(obsArrayOneChecked.length);
 };
 
 (async () => {