-
Notifications
You must be signed in to change notification settings - Fork 455
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
Conversation
Your preview environment pr-1075-bttf has been deployed. Preview environment endpoints are available at: |
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.
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) |
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.
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.
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.
Dependencies
Testing
Screenshots
multi-hover-metric-graphs.mov