Open footnote opened 8 years ago
I don't think this will work. I think we have to give you specific weights. If we only send you the word order than you won't be able to tell the difference in values between the items in the text cloud.
We basically would give each word a different font size in descending order and display them in a mixed order. We don’t do any logic with the weights other than assign a font size and the weights will require some algorithm to translate ranges of weights to font sizes which will overcomplicate the implementation
From: Avishaan Sent: Tuesday, November 03, 2015 4:20 AM To: codeHatcher/lightTribe Subject: Re: [lightTribe] Text Cloud in the profile page (#105)
I don't think this will work. I think we have to give you specific weights. If we only send you the word order than you won't be able to tell the difference in values between the items in the text cloud.
— Reply to this email directly or view it on GitHub.
the backend team will need to send the front end team the absolute weight values since all those text cloud libraries use that in order to calculate the size of the item in the cloud. The absolute weight can be adjusted on your end into a relative weight as an option.
The route GET /v1/profiles/{userId} which retrieves a user's profile from which we parse the interests for the "cloud text' doesn't return any specific weights for each interests.
Our solution was to expect the interests to be returned sorted in ascending order so that we can parse and assign text size based on the order in which they are returned.