Commit 74201025 authored by Porter Libby's avatar Porter Libby
Browse files

bug fix graph truncation

parent 87db0021
{
"name": "weather_interface",
"version": "1.02.02",
"version": "1.02.03",
"description": "Collect data from a Davis Vantage Pro 2, and display and download it through a NodeJS front-end.",
"main": "index.js",
"scripts": {
......
......@@ -20,7 +20,7 @@ function make_graph(arr, depth, offset){
slide_min = Math.min(document.getElementById('slide1').value, document.getElementById('slide2').value);
arr = [arr[0]].concat(arr.slice(slide_min, slide_max));
*/
arr = [arr[0]].concat(arr.slice(arr.length - 101));
arr = [arr[0]].concat(arr.slice(1).slice(arr.length - depth));
let data_sensors = arr.shift(); // titles of columns
let datasets = []; // container for data to graph (2d array)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment