diff --git a/js/display.js b/js/display.js index 5d864a1..cb8eb26 100644 --- a/js/display.js +++ b/js/display.js @@ -8,20 +8,17 @@ oReq.onload = function() { // This is where you handle what to do with the response. // The actual data is found on this.responseText - var list = JSON.parse(this.responseText); // Will alert: 42 + var list = JSON.parse(this.responseText); console.log(list); var options = {}; - options.list = list; - //options.gridSize = 15; - options.shuffle = true; - options.rotateRatio = 0.5; - options.weightFactor = 50; - options.minSize = 4; - options.drawOutOfBound = true; + options.list = list; + options.shuffle = true; + options.rotateRatio = 0.5; + options.weightFactor = 50; + options.minSize = 4; + options.drawOutOfBound = true; options.backgroundColor = 'rgba(255, 255, 255, 0)'; - options.color = 'random-light'; - //options.origin = [400, 100]; - //options.ellipticity = 5; + options.color = 'random-light'; WordCloud(document.getElementById('my_canvas'), options ); }; var urlParams = new URLSearchParams(window.location.search);