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

Allow multi hover on metric graphs #1075

Closed
wants to merge 7 commits into from

Conversation

bryce-fitzsimons
Copy link
Member

@bryce-fitzsimons bryce-fitzsimons commented Mar 14, 2023

This is a follow up from a recent change that plots 2 <DateGraph>s on a metric page (average, sum). This change allows for cross-graph hover states, so that you can see the tooltip track on both views at the same time.

  • Closes (add link to issue here)

Dependencies

Testing

Screenshots

multi-hover-metric-graphs.mov

@github-actions
Copy link

Your preview environment pr-1075-bttf has been deployed.

Preview environment endpoints are available at:

Copy link
Contributor

@lukesonnet lukesonnet left a comment

Choose a reason for hiding this comment

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

lgtm and doesn't seem to affect northstar page, which I think is right.

...data.map((d) =>
type === "binomial"
? d.c
: Math.min(d.v * 2, d.v + (d.s ?? 0) * 2)
Copy link
Contributor

Choose a reason for hiding this comment

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

This logic is repeated a couple of places, IDK, if you wanted to put them in one place which might make a later refactor using sums and sums of squares a bit easier. But not a big deal.

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.

None yet

2 participants