Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
HIP
weather_interface
Commits
74201025
Commit
74201025
authored
Jul 27, 2022
by
Porter Libby
Browse files
bug fix graph truncation
parent
87db0021
Changes
2
Hide whitespace changes
Inline
Side-by-side
package.json
View file @
74201025
{
"name"
:
"weather_interface"
,
"version"
:
"1.02.0
2
"
,
"version"
:
"1.02.0
3
"
,
"description"
:
"Collect data from a Davis Vantage Pro 2, and display and download it through a NodeJS front-end."
,
"main"
:
"index.js"
,
"scripts"
:
{
...
...
public/js/graph.js
View file @
74201025
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment