WheatonCS / Lexos

Python/Flask-based website for text analysis workflow. Previous (stable) release is live at:
http://lexos.wheatoncollege.edu
MIT License
120 stars 20 forks source link

WordCloud does not work with multiple or cut texts #87

Closed scottkleinman closed 10 years ago

scottkleinman commented 10 years ago

The reason is a small hack I put in the scripts_wordcloud.js file:

fetcher = dataset[0], // Use first index if json is generated by multicloud function

This just makes the assumption that the JSon object will only have one child (equivalent to one text). The code needs to be adapted for merged sets (see generateJSONForD3() in ModelClasses.py.

bawjensen commented 10 years ago

I seem to have fixed this, but broken the tooltips. Are tooltips working on your version?

scottkleinman commented 10 years ago

Yes, they're working for me. I'll have a look at your code, but I think we're OK.

scottkleinman commented 10 years ago

Oh, it looks like you haven't pushed the changes yet, so I can only confirm that I could see tooltips before your fix.

bawjensen commented 10 years ago

We've pushed a release candidate out recently. We're debugging it now, and the idea is that it'll be live on the server before the end of the day.

scottkleinman commented 10 years ago

Just pulled the changes, and tooltips are indeed gone. I'll try to debug.

scottkleinman commented 10 years ago

Tooltip fixed and pushed. Closing this issue.