Update libraries, prefetch data immediately

This commit is contained in:
2021-06-13 12:15:58 -04:00
parent 816b202f44
commit 178dd871ae
3 changed files with 25 additions and 12 deletions

View File

@@ -20,15 +20,18 @@ function populateChart() {
datasets: [{
borderColor: 'gold',
label: current_region_selection.toUpperCase() + " WoW Token Price",
data: chart_js_data
data: chart_js_data,
cubicInterpolationMode: 'monotone',
pointRadius: 0
}]
},
options: {
scales: {
xAxes: [{
type: 'time'
}]
}
x: {
type: 'time',
}
},
}
})
}
@@ -96,6 +99,7 @@ function formatToken() {
$("#token").html(current_price_hash[current_region_selection].toLocaleString());
}
$(document).ready(function() {
callUpdateURL()
setInterval(callUpdateURL, 60*1000);