-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[lens] tag cloud #157751
[lens] tag cloud #157751
Conversation
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanx Nathan! Now it looks great! 2 last comments from me
- On no results the icon is not well centered and and the suggestion looks weird. We need to add the tagcloud icon there to work like the rest of the suggestions
- We want by clicking a term to create a filter. This is already available in agg based and they share the same renderer so I feel will be easy to enable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally, it looks good to me, but I've identified 2 issues:
- there is a warning that pops up if there isn't enough room to render all the tags. Unfortunately, this warning is preserved on each data change even if a new configuration allows a full rendering of all tags. (to reproduce: build a tag cloud with
agent.keyword
and see the warning now, switch the field to something likegeo.dest
orextension.keyword
. All the tags are visible but the warning remains visible) - It seems that only string fields are supported as tags, but if you drag and drop an IP field into the center area you can also use IPs as tags. I think both ways should allow the same type of fields. (to reproduce: with an empty tag cloud configuration drag
clientIp
or any IP field into the chart area to see it working, but if you try to pick up the same field from the field dropdown in the tag dimension you can't)
I'd like to rise also this (cc @MichaelMarcialis)
I suggest changing the orientation radio group to a dropdown and making the switch part of the form (with the label at the left and the switch to the right).
I'm not sure for the font-size is not super clear what does the range mean, probably a better label here could help
resolved with 83bd394
resolved with a482b0e |
This is an existing issue and exists in legacy agg based tag cloud visualization. Fixing this issue is outside the scope of this PR.
resolved with ed2619f
resolved with 062d86a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM! I think it works fine as a technical preview visualization in Lens. We can always follow up with improvements. Thanx Nathan, great job!
the only thing I would change before merging is making the label switch and the orientation dropdown one size smaller as it is on the rest toolbar panels, for example
I am approving for not blocking this PR
resolved with 535f1f6 |
Thanks for the ping, @markov00. I agree with all of those points. Looks like @nreese has addressed them as well. Thanks, all! |
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Part of #154307
Closes #95542
PR adds tagcloud visualization to lens