Skip to content
Snippets Groups Projects
Commit b50d6414 authored by Porter Libby's avatar Porter Libby
Browse files

Update graph.js

parent 2df3a67e
Branches
No related merge requests found
......@@ -18,6 +18,7 @@ function get_host(){
}
});
}
// get weather history CSV from server and load it into the DATA array.
function get_history_weather(){
$.ajax({
type: 'GET',
......@@ -32,6 +33,7 @@ function get_history_weather(){
}
});
}
// render graph with chartJS
function make_graph(arr, depth=100){
if (arr.length > 100){
arr = [arr[0]].concat(arr.slice(-1 * depth));
......
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