Socialmetrica/Socialmetrica.package/NitterUser.class/instance/retweetsReportData.st

14 lines
412 B
Smalltalk

accessing
retweetsReportData
| tempDict labels xAxis |
tempDict := self retweetsSortedByOccurrences.
labels := tempDict keys.
labels := labels collect: [ :profile | ($' asString), '@', profile, ($' asString) ].
xAxis := tempDict values.
xAxis := xAxis collect: [ :value | ($' asString), (value asString), ($' asString) ].
^ {
tempDict.
('[', (',' join: xAxis), ']').
('[', (',' join: labels), ']').
}