From 178dd871ae5530aaaffa9d3d14b7ea2f0e3eeb5e Mon Sep 17 00:00:00 2001
From: Emily Doherty
+ Time Selection: 2d 3d 5d diff --git a/js/token.js b/js/token.js index 88c5c4f..d5208ca 100644 --- a/js/token.js +++ b/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);