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

Use devicePixelRatio to scale up and down canvas values in TSVB for Tooltip #13565

Merged
merged 1 commit into from
Aug 18, 2017

Conversation

simianhacker
Copy link
Member

This PR fixes #12866 by using devicePixelRatio to scale up the point when deciding to change the tooltip direction. It also scales down the canvas size when determining the right value for the tooltip when it switches direction. To verify this actually fixes the issue you must test this on a Mac with a Retina display. First open TSVB with any "Time Series chart" in Chrome on the retina display. Then move the tooltip to the right edge of the chart (it should cut off the tooltip). Now checkout this PR and reload the same page (on the retina display).

Before

image

After

image

@simianhacker simianhacker added bug Fixes for quality problems that affect the customer experience v6.0.0 v6.0.0-beta2 review Feature:TSVB TSVB (Time Series Visual Builder) Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:fix labels Aug 17, 2017
Copy link

@alexfrancoeur alexfrancoeur left a comment

Choose a reason for hiding this comment

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

Nailed it
giphy 8

LGTM
aug-18-2017 08-28-19

Copy link
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

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

interesting, thx

@simianhacker simianhacker merged commit 8aaa900 into elastic:master Aug 18, 2017
@simianhacker
Copy link
Member Author

Back ported to 6.0 with 8b0c920
Back ported to 6.x with 66bb17e

@simianhacker
Copy link
Member Author

Back ported to 5.6 with 042e502

@simianhacker simianhacker deleted the fix-12866 branch April 17, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:TSVB TSVB (Time Series Visual Builder) Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:fix review v5.6.0 v6.0.0-beta2 v6.0.0 v7.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TSVB] Tooltip cut off when inspecting data points at the edge of the visualization
3 participants