Remove unused options
This commit is contained in:
parent
54e728e50a
commit
81941e35ca
1 changed files with 8 additions and 11 deletions
|
@ -8,11 +8,10 @@ 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;
|
||||
|
@ -20,8 +19,6 @@ oReq.onload = function() {
|
|||
options.drawOutOfBound = true;
|
||||
options.backgroundColor = 'rgba(255, 255, 255, 0)';
|
||||
options.color = 'random-light';
|
||||
//options.origin = [400, 100];
|
||||
//options.ellipticity = 5;
|
||||
WordCloud(document.getElementById('my_canvas'), options );
|
||||
};
|
||||
var urlParams = new URLSearchParams(window.location.search);
|
||||
|
|
Loading…
Reference in a new issue