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

ui: Metrics graph highlighted point bug fix #4246

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

manojVivek
Copy link
Contributor

No description provided.

Copy link

alwaysmeticulous bot commented Jan 2, 2024

🤖 Meticulous spotted visual differences in 23 of 396 screens tested: view and approve differences detected.

Last updated for commit 91bcc66. This comment will update as new commits are pushed.

Copy link
Contributor

@yomete yomete left a comment

Choose a reason for hiding this comment

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

lgtm!

Comment on lines +209 to +210
const x = xScale(d[0]) + margin / 2;
const y = yScale(d[1]) - margin / 3;
Copy link
Contributor

Choose a reason for hiding this comment

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

just curious here, why did adding a margin and dividing by 2/3 fix the bug?

Copy link
Member

Choose a reason for hiding this comment

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

curious about this as well, does it maybe have to do with the 2.5 factor in the xScale setup?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, these are because of the additional padding that got introduced from the axis labels.

But still don't have a concrete explanation on why these fractions work. We need to figure that out as part of #4241.

@manojVivek manojVivek merged commit 76ea67b into main Jan 3, 2024
37 of 38 checks passed
@manojVivek manojVivek deleted the metrics-graph-hover-fix branch January 3, 2024 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants