-
Notifications
You must be signed in to change notification settings - Fork 120
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
[Wordcloud] Replace kibana tagcloud with es-charts #1156
Comments
Thank you Stratoula!
|
Update: I implemented the chart label on the kibana side so no need to be supported on the chart. |
Thanks, Stratoula! So the two pieces of work are, the click event handling, and the provisioning of data for test purposes in the |
Btw. it's good to hear that the way you configure it in Kibana, there won't be word-in-word occurrence. (For an example of that, see the middle image in the PR from @Kati-dev-hu - there's text in the "o" of "xobni"). In this case, attaching standard mouse click event handlers on the DOM elements works well. It probably works for the text-in-text case too, as most likely the rendering is ordered in that the big word is layouted first, ie. rendered first, ie. the small item atop of it can still capture the mouse. The bottom right has other examples too. Though in general it'd be worthwile to use the added configurability at some point, to enable the denser look and angle variety seen in the PR. |
It would be awesome if wecould replace the old tagcloud with the es-charts implementation on 7.14 but it is perfectly fine if we merge it on 7.15. |
my 2 cents:
|
Indeed, my understanding is that it's already ordered this way by the -attaching the click event handlers onto the SVG
@rshen91 as the vis accessibility powerhouse, it'd be worth taking an initial look at it, as the |
Another update about the functional tests. There is no need to provide me with all this info that I mentioned above. As wordcloud is based on svg I can access the elements and write the functional tests! |
# [30.0.0](v29.2.0...v30.0.0) (2021-06-04) ### Bug Fixes * **domain:** custom domain should not filter data ([#1181](#1181)) ([76e8dca](76e8dca)), closes [#1129](#1129) * **value_labels:** zero as a valid value for textBorder and borderWidth ([#1182](#1182)) ([a64f333](a64f333)) * annotation tooltip display when remounting specs ([#1167](#1167)) ([8408600](8408600)) * render nodeLabel formatted text into the nodes ([#1173](#1173)) ([b44bdff](b44bdff)) ### Features * **axis:** allow pixel domain padding for y axes ([#1145](#1145)) ([7c1fa8e](7c1fa8e)) * apply value formatter to the default legend item label ([#1190](#1190)) ([71474a5](71474a5)) * **tooltip:** stickTo vertical middle of the cursor ([#1163](#1163)) ([380363b](380363b)), closes [#1108](#1108) * **wordcloud:** click and over events on text ([#1180](#1180)) ([196fb6a](196fb6a)), closes [#1156](#1156) ### BREAKING CHANGES * **value_labels:** the `textBorder` of `ValueFillDefinition` is now optional or a number only
🎉 This issue has been resolved in version 30.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [30.0.0](elastic/elastic-charts@v29.2.0...v30.0.0) (2021-06-04) ### Bug Fixes * **domain:** custom domain should not filter data ([opensearch-project#1181](elastic/elastic-charts#1181)) ([92ba84c](elastic/elastic-charts@92ba84c)), closes [opensearch-project#1129](elastic/elastic-charts#1129) * **value_labels:** zero as a valid value for textBorder and borderWidth ([#1182](elastic/elastic-charts#1182)) ([880fbf1](elastic/elastic-charts@880fbf1)) * annotation tooltip display when remounting specs ([opensearch-project#1167](elastic/elastic-charts#1167)) ([7163951](elastic/elastic-charts@7163951)) * render nodeLabel formatted text into the nodes ([opensearch-project#1173](elastic/elastic-charts#1173)) ([0de9688](elastic/elastic-charts@0de9688)) ### Features * **axis:** allow pixel domain padding for y axes ([#1145](elastic/elastic-charts#1145)) ([6787728](elastic/elastic-charts@6787728)) * apply value formatter to the default legend item label ([opensearch-project#1190](elastic/elastic-charts#1190)) ([20108bb](elastic/elastic-charts@20108bb)) * **tooltip:** stickTo vertical middle of the cursor ([#1163](elastic/elastic-charts#1163)) ([b858fb3](elastic/elastic-charts@b858fb3)), closes [opensearch-project#1108](elastic/elastic-charts#1108) * **wordcloud:** click and over events on text ([opensearch-project#1180](elastic/elastic-charts#1180)) ([adbf341](elastic/elastic-charts@adbf341)), closes [opensearch-project#1156](elastic/elastic-charts#1156) ### BREAKING CHANGES * **value_labels:** the `textBorder` of `ValueFillDefinition` is now optional or a number only
Is your feature request related to a problem? Please describe.
I am currently working on replacing the kibana tagcloud viz with es-charts and I want to report some gaps that exist between the two implementations that need to be addressed.
onElementClick
: I want to be able to click on a word and get the clicked value. Right now I get:every time I click a word. I would like to get the clicked term. This is needed because we want to trigger the filter action every time a term is clicked.. Moreover, I see that the click event is triggered everywhere and not only when I click a term. (I am fine with it as soon as no term is returned when I click on a blank space).
Kibana Cross Issues
elastic/kibana#95539
Checklist
Delete any items that are not applicable to this feature request.
Kibana Cross Issues
listkibana cross issue
tag is associated to the issue if any kibana cross issue is presentThe text was updated successfully, but these errors were encountered: