Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ if (!window.clearImmediate) {
var rotateDeg = getRotateDeg();

// get info needed to put the text onto the canvas
var info = getTextInfo(word, weight, rotateDeg);
var info = typeof(item[3]) == 'number' ? item[3] : getTextInfo(word, weight, rotateDeg);

// not getting the info means we shouldn't be drawing this one.
if (!info) {
Expand Down
3 changes: 2 additions & 1 deletion src/wordCloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ echarts.registerLayout(function (ecModel, api) {
data.getName(idx),
itemModel.get('textStyle.fontSize', true)
|| echarts.number.linearMap(value, valueExtent, sizeRange),
idx
idx,
typeof(itemModel.get('textStyle.rotation')) != 'undefined' ? itemModel.get('textStyle.rotation') : false
];
}).sort(function (a, b) {
// Sort from large to small in case there is no more room for more words
Expand Down