Modifyng wordcloud data filtering.
This commit is contained in:
parent
c535993e47
commit
773d94383c
@ -9,6 +9,10 @@ wordcloudData
|
||||
occurrencesWords removeKeys: stopwords.
|
||||
occurrencesWords removeKeys: stopwordsCapitalized.
|
||||
occurrencesWords removeKey: ''.
|
||||
|
||||
occurrencesWords size > 50 ifTrue: [
|
||||
occurrencesWords := (occurrencesWords associations copyFrom: 1 to: 50) asOrderedDictionary ].
|
||||
|
||||
wordAndValue := OrderedCollection new.
|
||||
occurrencesWords keysAndValuesDo: [ :k :v |
|
||||
wordAndValue add: ('{name:', ($' asString), k, ($' asString), ',value:', v asString, '}')
|
||||
|
Loading…
Reference in New Issue
Block a user