Conversation
|
jenkins, test this. |
|
This is now running again. I added it to the core-vis library, so it loads on startup without additional plugin installation commands.
To test this:
small UI changes: @stormpython FYI: apart from resolving merge conflicts, and some reshuffling of the code so it gets loaded on startup, this worked pretty much out of the box. Thanks! |
|
If using significant terms is there an option to size text by the significance score? |
There was a problem hiding this comment.
@markharwood @thomasneirynck
here is where the size for the text is set.
|
@markharwood not sure. Have you seen this in any other Kibana visualizations? The tags are sized according to the aggregation-value. So e.g. counts, averages, ... I'm not quite sure if we are lifting out the significance score in any other viz either. |
I'm not sure what metricsAgg is picking up as the value - the score or the doc count?
We use it as the sort order for selecting which terms to surface but don't illustrate the magnitude of the score. This is what the diagram I linked to illustrates in terms of movement from a background frequency. It's possibly a little hard for users to interpret but the sizing of words in tag clouds is easier to grok and should be based on score not doc_count. |
|
@markharwood @thomasneirynck its picking up the doc count. If I recall correctly, |
2fcc4b9 to
f46f639
Compare
|
for reviewers, this is an early check-in, so this will be revised most certainly. For now, mainly looking for functional feedback: do the options in the forms make sense, does it work as expected, what is missing/what should be added, ... |
|
about the determinism of word positioning. Agreed, that's a problem. At this point,I'm not quite sure how to resolve this. The problem is that at each visualization rendering, the entire visualization gets torn down and recreated (the layout algo indeed has some random elements). This is the standard flow of the visualization app. Ideally, there's an update hook, that when the visualizations options change (and the data remains the same), the same order can be reused. To be investigated.It'd be nice to incorporate this. (thanks for the bug list, I'll address these) |
|
Great work on this @thomasneirynck ! And thanks for coming back and offering guidance @stormpython . :) A few comments: Difficulty in relating input to output I had a bit of a hard time understanding how my aggregations were impacting the tag cloud. This is a problem I have with all visualizations, but it seems a little more acute here because of the "volatile" nature of the tag cloud. This may be due to its non-determinism. It may also be due to the fact that tag clouds represent data in less-organized way, so it's more difficult for me to pin down specific relationships between different parts of the vis (as opposed to say, a bar chart). Font style and weight Maybe we can remove the oblique font style, as well as the bolder and lighter weight options. They didn't seem to have a noticeable impact on the way the vis appeared. Orientations control Maybe we can brainstorm on ways to make this control clearer? I don't quite understand how this control works. Possibly we could solve this with better labeling/help text. The usefulness of tag clouds Here are some useful articles I found on the pros and cons of tag clouds:
Personally, I don't think they are very useful but I'm sure that we have users who would like to use them. So I think this is a good addition to our product, and I think our users will appreciate it! |
|
@cjcenizal thanks so much for the careful and measured feedback, I love that.
|
d812f6c to
6e3b617
Compare
cjcenizal
left a comment
There was a problem hiding this comment.
Had a very superficial glance-through and had a couple suggestions. I'll review more thoroughly once you're done.
There was a problem hiding this comment.
Can you elaborate on this comment?
There was a problem hiding this comment.
sorry, that file needs to be deleted since it is the directive for the UI-input we'll remove. it was a mistake to check this in, let alone the garbled language
There was a problem hiding this comment.
return `translate(${d.dx},${d.dy})`;|
when you get a chance can we rebase this? |
6e3b617 to
e220ae4
Compare
|
Latest e220ae4.
|
junk/clinton.json
Outdated
There was a problem hiding this comment.
please ignore these for know. I used these for testing internally. will need to remove them.
d90712a to
d4b5f7f
Compare
|
@jbudz ow that looks bad. yes, will add margin |
|
jenkins, test this |
|
@cjcenizal do you want to take a look at the slider ? |
|
LGTM |
this was a very early review. Code style issue + UI func addressed since.
Backports PR #8104 **Commit 1:** tagcloud squashed * Original sha: 1282011 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-18T21:08:29Z **Commit 2:** ensure tags are not turned upside down * Original sha: 68e09f4 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T03:43:41Z **Commit 3:** remove unnecessary background * Original sha: dba79b8 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T03:55:54Z **Commit 4:** add option to hide the label * Original sha: 7f32544 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T04:08:45Z **Commit 5:** use double-ende slider for font-size selection * Original sha: 00c9ea8 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T15:26:14Z **Commit 6:** give slider some more space * Original sha: b282084 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T16:38:55Z **Commit 7:** do not allow 0-sized tags * Original sha: 42bbc39 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T16:44:26Z **Commit 8:** fix typo * Original sha: f753e1a * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T16:48:24Z **Commit 9:** make capitalization consistent * Original sha: 63101d2 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T19:47:44Z **Commit 10:** doc checkin * Original sha: fefa40a * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T21:21:17Z **Commit 11:** minor doc edits * Original sha: 84a8fc3 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T21:34:32Z **Commit 12:** doc build issues * Original sha: cd2374a * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T21:46:59Z
Backports PR #8104 **Commit 1:** tagcloud squashed * Original sha: 1282011 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-18T21:08:29Z **Commit 2:** ensure tags are not turned upside down * Original sha: 68e09f4 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T03:43:41Z **Commit 3:** remove unnecessary background * Original sha: dba79b8 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T03:55:54Z **Commit 4:** add option to hide the label * Original sha: 7f32544 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T04:08:45Z **Commit 5:** use double-ende slider for font-size selection * Original sha: 00c9ea8 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T15:26:14Z **Commit 6:** give slider some more space * Original sha: b282084 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T16:38:55Z **Commit 7:** do not allow 0-sized tags * Original sha: 42bbc39 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T16:44:26Z **Commit 8:** fix typo * Original sha: f753e1a * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T16:48:24Z **Commit 9:** make capitalization consistent * Original sha: 63101d2 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T19:47:44Z **Commit 10:** doc checkin * Original sha: fefa40a * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T21:21:17Z **Commit 11:** minor doc edits * Original sha: 84a8fc3 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T21:34:32Z **Commit 12:** doc build issues * Original sha: cd2374a * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T21:46:59Z
Backports PR #8104 **Commit 1:** tagcloud squashed * Original sha: 1282011 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-18T21:08:29Z **Commit 2:** ensure tags are not turned upside down * Original sha: 68e09f4 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T03:43:41Z **Commit 3:** remove unnecessary background * Original sha: dba79b8 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T03:55:54Z **Commit 4:** add option to hide the label * Original sha: 7f32544 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T04:08:45Z **Commit 5:** use double-ende slider for font-size selection * Original sha: 00c9ea8 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T15:26:14Z **Commit 6:** give slider some more space * Original sha: b282084 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T16:38:55Z **Commit 7:** do not allow 0-sized tags * Original sha: 42bbc39 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T16:44:26Z **Commit 8:** fix typo * Original sha: f753e1a * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T16:48:24Z **Commit 9:** make capitalization consistent * Original sha: 63101d2 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T19:47:44Z **Commit 10:** doc checkin * Original sha: fefa40a * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T21:21:17Z **Commit 11:** minor doc edits * Original sha: 84a8fc3 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T21:34:32Z **Commit 12:** doc build issues * Original sha: cd2374a * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T21:46:59Z
Backports PR #8104 **Commit 1:** tagcloud squashed * Original sha: 1282011 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-18T21:08:29Z **Commit 2:** ensure tags are not turned upside down * Original sha: 68e09f4 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T03:43:41Z **Commit 3:** remove unnecessary background * Original sha: dba79b8 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T03:55:54Z **Commit 4:** add option to hide the label * Original sha: 7f32544 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T04:08:45Z **Commit 5:** use double-ende slider for font-size selection * Original sha: 00c9ea8 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T15:26:14Z **Commit 6:** give slider some more space * Original sha: b282084 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T16:38:55Z **Commit 7:** do not allow 0-sized tags * Original sha: 42bbc39 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T16:44:26Z **Commit 8:** fix typo * Original sha: f753e1a * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T16:48:24Z **Commit 9:** make capitalization consistent * Original sha: 63101d2 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T19:47:44Z **Commit 10:** doc checkin * Original sha: fefa40a * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T21:21:17Z **Commit 11:** minor doc edits * Original sha: 84a8fc3 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T21:34:32Z **Commit 12:** doc build issues * Original sha: cd2374a * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T21:46:59Z
Backports PR elastic#8104 **Commit 1:** tagcloud squashed * Original sha: 1282011 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-18T21:08:29Z **Commit 2:** ensure tags are not turned upside down * Original sha: 68e09f4 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T03:43:41Z **Commit 3:** remove unnecessary background * Original sha: dba79b8 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T03:55:54Z **Commit 4:** add option to hide the label * Original sha: 7f32544 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T04:08:45Z **Commit 5:** use double-ende slider for font-size selection * Original sha: 00c9ea8 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T15:26:14Z **Commit 6:** give slider some more space * Original sha: b282084 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T16:38:55Z **Commit 7:** do not allow 0-sized tags * Original sha: 42bbc39 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T16:44:26Z **Commit 8:** fix typo * Original sha: f753e1a * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T16:48:24Z **Commit 9:** make capitalization consistent * Original sha: 63101d2 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T19:47:44Z **Commit 10:** doc checkin * Original sha: fefa40a * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T21:21:17Z **Commit 11:** minor doc edits * Original sha: 84a8fc3 * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T21:34:32Z **Commit 12:** doc build issues * Original sha: cd2374a * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T21:46:59Z Former-commit-id: 867ff10








See #8149
moving tagcloud PR (#6975). resolved merge conflicts, checking if it runs in CI