Remove unused options

This commit is contained in:
Gregory Trolliet 2020-11-22 15:10:22 +01:00
parent 54e728e50a
commit 81941e35ca

View file

@ -8,20 +8,17 @@ oReq.onload = function() {
// This is where you handle what to do with the response. // This is where you handle what to do with the response.
// The actual data is found on this.responseText // 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); console.log(list);
var options = {}; var options = {};
options.list = list; options.list = list;
//options.gridSize = 15; options.shuffle = true;
options.shuffle = true; options.rotateRatio = 0.5;
options.rotateRatio = 0.5; options.weightFactor = 50;
options.weightFactor = 50; options.minSize = 4;
options.minSize = 4; options.drawOutOfBound = true;
options.drawOutOfBound = true;
options.backgroundColor = 'rgba(255, 255, 255, 0)'; options.backgroundColor = 'rgba(255, 255, 255, 0)';
options.color = 'random-light'; options.color = 'random-light';
//options.origin = [400, 100];
//options.ellipticity = 5;
WordCloud(document.getElementById('my_canvas'), options ); WordCloud(document.getElementById('my_canvas'), options );
}; };
var urlParams = new URLSearchParams(window.location.search); var urlParams = new URLSearchParams(window.location.search);