Remove unused options

This commit is contained in:
Gregory Trolliet 2020-11-22 15:10:22 +01:00
parent 54e728e50a
commit 81941e35ca
1 changed files with 8 additions and 11 deletions

View File

@ -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);