fix order of operations to make things rotate correctly

This commit is contained in:
Victor Shnayder
2013-05-13 16:27:27 -04:00
parent f8a72e5cbe
commit 4f2c3b78da

View File

@@ -165,7 +165,7 @@ define('WordCloudMain', ['logme'], function (logme) {
d3.layout.cloud().size([this.width, this.height])
.words(words)
.rotate(function () {
return Math.floor((Math.random() * 2) * 90);
return Math.floor((Math.random() * 2)) * 90;
})
.font('Impact')
.fontSize(function (d) {