-
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
[Visualize] New heatmap implementation with elastic-charts #118338
[Visualize] New heatmap implementation with elastic-charts #118338
Conversation
@elasticmachine merge upstream |
You are right! I removed the deprecated message. This should be deprecated when the new implementation is the default.
Yes this also exists in Lens. @markov00 is this possible? I would suggest if this is possible to address it in different PR though.
I added more padding and I think it looks better now. A note here: One thing missing are the axis titles. When they will be supported it will give more space to the axis and we won't have this kind of problems. |
@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.
Retested thoroughly and couldn't find anything wrong! Code LGTM 👌🏼
src/plugins/chart_expressions/expression_heatmap/common/types/expression_functions.ts
Outdated
Show resolved
Hide resolved
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 in Safari and all works fine 👍
@MichaelMarcialis are you ok with the current status? I need your approval to merge :D |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
async chunk count
History
To update your PR or re-run it, just comment with: |
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.
Thanks for making those changes, @stratoula. I have one last question below, but nothing worth holding you up over. Approving.
The question I have is regarding the legend toggle button. With the new padding you've added to the visualization container, should we remove the padding to the .visLegend__toggle
button in order to reduce the chance of overlapping with the visualization and to keep it's position consistent with other legend toggle buttons (such as those in XY charts)?
Discussed offline with Michael, just adding it here for visibility. The |
@stratoula: Ignore my question above. I had forgotten to disable the legacy heatmaps in advanced settings. What you have here is good. Thanks again! |
…18338) * [WIP][Heatmap] Creates implementation with elastic-charts * Fix types and connection with vislib * Add coloring options * Brush, click events, coloring etc * Cleaning up the expression function * Add legend picker, fix sorting and other fixes * Further fixes * Use the shared expression to Lens and cleanup * PrepareLogTables for new expression function * Use common renderer and expression function with lens * Fix i18n * Small tweaks * Add unit tests * Adds a unit test to the heatmap component * update plugin list * Fix types * Fix types * update limits * Change to the expression function * Cleanup translations * Refactor to use vis * Fix types * further cleanup of the translations * register new setting * Fix sorting for histogram * Adds functional tests for the new nisualize heatmap * Cleanup * Fix * Apply PR comments * Address PR comments * Fix i18n * Fix i18n * Makes the <Heatmap /> id dynamic * reverse * fix translation file * Apply design PR comments * Fix package * More fixes * Fix brush problem Co-authored-by: Kibana Machine <[email protected]>
Summary
Part of #118516
Part of #103633
Partially fixes #30681 (adds a grid)
Closes #13926
Closes #10648
Closes #12666
PR's output
visTypeHeatmap
plugin with the new implementation of the visualize heatmap chart. The new implementation is using the elastic-charts library and is NOT the default. In order to enable it, you have to switch off the corresponding switch from the advanced settings.expressionHeatmap
plugin which has the expression function and renderer of the heatmap chart. These are used by both Lens and Visualize editors 🎉Vislib heatmap vs New implementation
Scale to data bounds
switch offFor the above, we will expect the user's feedback and decide if we would like to support them in the future
The above are blocked from EC side and we would like to support them in order to make the new implementation the default
Screenshots
dynamic ranges
percentage mode
custom ranges and overwrite color
Checklist