Skip to content
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

fix: point highlight based on geom position and transform #934

Merged

Conversation

markov00
Copy link
Member

@markov00 markov00 commented Dec 2, 2020

Summary

This PR fixes a regression on the point highlighter for line and area charts.
Due to recent changes on the data processing pipeline, the geometry canvas coordinates are composed by a chart relative x,y position + a transpose function.
The inverse function that checks if the mouse if over the geometry was not updated to reflect this change.
A functional test is also added and tested against the previous code.

Checklist

  • Unit tests were updated or added to match the most common scenarios

@markov00 markov00 added :interactions Interactions related issue :xy Bar/Line/Area chart related bug Something isn't working regression labels Dec 3, 2020
@markov00 markov00 requested a review from nickofthyme December 3, 2020 11:29
@markov00 markov00 marked this pull request as ready for review December 3, 2020 11:33
Copy link
Collaborator

@nickofthyme nickofthyme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, solves the highlight issue.

Screen Recording 2020-12-03 at 09 52 AM

@markov00 markov00 merged commit 7198b5d into elastic:master Dec 3, 2020
@markov00 markov00 deleted the 2020_12_02-fix_pointer_highlighter branch December 3, 2020 17:07
markov00 pushed a commit that referenced this pull request Dec 4, 2020
# [24.3.0](v24.2.0...v24.3.0) (2020-12-04)

### Bug Fixes

* **highlighter:** show default highlighted radius with hidden dots ([#926](#926)) ([8b167a4](8b167a4)), closes [#679](#679)
* **xy_chart:** improve line joins rendering ([#920](#920)) ([ec8041a](ec8041a))
* point highlight based on geom position and transform ([#934](#934)) ([7198b5d](7198b5d))

### Features

* allow no results component, don't require series ([#936](#936)) ([4766c23](4766c23))
* improved domain error handling ([#933](#933)) ([94534a5](94534a5))
@markov00
Copy link
Member Author

markov00 commented Dec 4, 2020

🎉 This PR is included in version 24.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Dec 4, 2020
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
# [24.3.0](elastic/elastic-charts@v24.2.0...v24.3.0) (2020-12-04)

### Bug Fixes

* **highlighter:** show default highlighted radius with hidden dots ([opensearch-project#926](elastic/elastic-charts#926)) ([351c20c](elastic/elastic-charts@351c20c)), closes [opensearch-project#679](elastic/elastic-charts#679)
* **xy_chart:** improve line joins rendering ([opensearch-project#920](elastic/elastic-charts#920)) ([9a6771c](elastic/elastic-charts@9a6771c))
* point highlight based on geom position and transform ([opensearch-project#934](elastic/elastic-charts#934)) ([196ee8d](elastic/elastic-charts@196ee8d))

### Features

* allow no results component, don't require series ([opensearch-project#936](elastic/elastic-charts#936)) ([6be5c8b](elastic/elastic-charts@6be5c8b))
* improved domain error handling ([opensearch-project#933](elastic/elastic-charts#933)) ([f480054](elastic/elastic-charts@f480054))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working :interactions Interactions related issue regression released Issue released publicly :xy Bar/Line/Area chart related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants