Update libraries, prefetch data immediately
This commit is contained in:
14
js/token.js
14
js/token.js
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user