Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client-side word cloud? #14

Open
rloomans opened this issue Apr 21, 2016 · 4 comments
Open

Client-side word cloud? #14

rloomans opened this issue Apr 21, 2016 · 4 comments

Comments

@rloomans
Copy link

@zpurcey are there any reasons not to replace the word cloud with a client-side library like https://github.com/timdream/wordcloud2.js?

@zpurcey
Copy link
Owner

zpurcey commented Apr 21, 2016

I recall testing with every js implementation I could find back in the day. Would have been my preference.

The biggest tricks were ensuring the algorithm would reliably display ALL words and zoom appropriately to fit them all.

Couple of good tests if you wanted to try a client:

  • Will it support 1 long word amoung a few regular sized words (supercolorfragilisticexpealidious)
  • Display a word cloud in the same size box when you have 20 words or 500 and still not drop anyone's word because people look to see 'their' word.
  • Always display all words. Don't drop words like and or but

As I stepped through a few different options I'd run into road blocks due to the library flexibility. In the end I built the generator by hand using r so I'd have complete control.

Are you seeing issues with the current generator?

@zpurcey
Copy link
Owner

zpurcey commented Apr 21, 2016

Interested to hear what you think. Had a look at wordcloud2.js and don't see any obvious reasons why it wouldn't work just playing with the demo.

@rloomans
Copy link
Author

The principle problem I had was spinning up a new instance to experiment on: without the API key, the word cloud wouldn't turn up.

In the near future I want to install the app inside our corporate environment and even with the API key, it doesn't make much sense to be still calling out to an external service for the word cloud.

Robert Loomans

On 21 Apr 2016, at 13:09, zpurcey [email protected] wrote:

I recall testing with every js implementation I could find back in the day. Would have been my preference.

The biggest tricks were ensuring the algorithm would reliably display ALL words and zoom appropriately to fit them all.

Couple of good tests if you wanted to try a client:

Will it support 1 long word amoung a few regular sized words (supercolorfragilisticexpealidious)
Display a word cloud in the same size box when you have 20 words or 500 and still not drop anyone's word because people look to see 'their' word.
Always display all words. Don't drop words like and or but
As I stepped through a few different options I'd run into road blocks due to the library flexibility. In the end I built the generator by hand using r so I'd have complete control.

Are you seeing issues with the current generator?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

@zpurcey
Copy link
Owner

zpurcey commented Apr 21, 2016

Yeah understand. I suggest that the js client should do it with a little
work to wrap it. I like it's multi language support and the ability to form
the word cloud as a shape. Let me know how you go or reach out if you just
want to internalize the r service.

Cheers,

Andrew
On Apr 21, 2016 3:44 PM, "Robert Loomans" [email protected] wrote:

The principle problem I had was spinning up a new instance to experiment
on: without the API key, the word cloud wouldn't turn up.

In the near future I want to install the app inside our corporate
environment and even with the API key, it doesn't make much sense to be
still calling out to an external service for the word cloud.

Robert Loomans

On 21 Apr 2016, at 13:09, zpurcey [email protected] wrote:

I recall testing with every js implementation I could find back in the
day. Would have been my preference.

The biggest tricks were ensuring the algorithm would reliably display
ALL words and zoom appropriately to fit them all.

Couple of good tests if you wanted to try a client:

Will it support 1 long word amoung a few regular sized words
(supercolorfragilisticexpealidious)
Display a word cloud in the same size box when you have 20 words or 500
and still not drop anyone's word because people look to see 'their' word.
Always display all words. Don't drop words like and or but
As I stepped through a few different options I'd run into road blocks
due to the library flexibility. In the end I built the generator by hand
using r so I'd have complete control.

Are you seeing issues with the current generator?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#14 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants