Remove unused options
This commit is contained in:
parent
54e728e50a
commit
81941e35ca
1 changed files with 8 additions and 11 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue