2022-06-04 00:43:01 +00:00
|
|
|
accessing
|
|
|
|
quotesReportData
|
|
|
|
|
|
|
|
| tempDict labels xAxis |
|
2023-07-26 02:30:24 +00:00
|
|
|
self quotes isEmpty
|
|
|
|
ifTrue: [ ^ { OrderedDictionary new.
|
|
|
|
('[''', '0', ''']').
|
|
|
|
('[''', 'No replies', ''']')} ].
|
2022-06-21 16:59:13 +00:00
|
|
|
tempDict := self quotes asMessagesUserNamesSortedByOccurrences.
|
2022-06-09 21:02:35 +00:00
|
|
|
|
2022-06-09 21:05:38 +00:00
|
|
|
tempDict size > 10 ifTrue: [
|
|
|
|
tempDict := (tempDict associations copyFrom: 1 to: 10) asOrderedDictionary ].
|
2022-06-09 21:02:35 +00:00
|
|
|
|
2022-06-04 00:43:01 +00:00
|
|
|
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), ']').
|
|
|
|
}
|