-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
New tooltips UI #4156 #4651
New tooltips UI #4156 #4651
Conversation
One thing I'm on the fence of, is the idea of having a horizontal crosshair / scrubber line and a single tooltip for each data point on the x-axis. If you have a ton of lines/series, the behavior feels strange, because for instance you may want to look at what's going on at a specific point, and this makes it very hard (or even impossible). So I see 3 options:
Thoughts? Particularly @corywatilo @mariusandra @samwinslow |
Bug descriptionThe perfect combination is when the list is very long and also quite wide:
Limiting the breakdown count might be a option, but who knows what other large combination of data flows by. Expected behaviorIf I want my lines broken down by URL, I should get my lines broken down by URL, damnit! 😆 |
Still not fully ready but that problem has already been addressed here 😉 @mariusandra |
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.
Found a bunch of things that seem not right. Otherwise looking good :)
Thanks for the initial review @mariusandra. Comments below and ready for another look,
|
Awesome! Things seem much better and the experience is already so much nicer than what we have now. Ok for the "compare previous" and other points not mentioned below:
For resolving it, can we do something similar to point 1 in this internal post where the tooltip is just a bit away from the line? Plus some CSS animations for extra smoothness :). |
Both those points push towards a solution where you can interact more with the contents of the tooltip. |
This looks really good! Personally I do prefer the unified scrubber with the line that runs all the way through. I feel like I don't need to move my mouse all over the graph as much to make sure I have a good sense of the data. A minor UX nit: When moving the mouse horizontally, the Y-axis line moves smoothly, but the actual tooltips are locked to the plots (eg day). It would be nice for either the tooltips to move smoothly, or for the Y-axis line to snap to each spot the tooltip will actually change. |
Thanks @mariusandra & @corywatilo for this round of reviews, great points! As these are UX and non-code blocking, I'll fix merge conflicts, go ahead and merge and address all your comments in a follow-up PR. Reason is this is already quite large, running into conflicts already, and there are 3 other PRs in this series that could cause further headaches. For your peace of mind, this feature isn't released to anyone just yet. |
Failing cypress component tests are unrelated (already failing here https://github.com/PostHog/posthog/runs/2819066766). Seems first failure started in #4686. |
If you'll fix bugs in this PR in new ones, I'll add one more weirdness to this issue:
This is the top chart, but it's the same with any other one. |
Examples
Simple breakdown

Multiple series & math aggregation

Breakdown & math aggregation

Multiple series & breakdown

Lifecycle

Changes
Implements the new tooltips as designed on #4156 for trend graphs. The new design is not only more sleek and in line with the most recent UI changes, but it also introduces simplicity when reading graphs:
Large width

Large height

4156-improved-graphs
bug reports #4647Before

After

Checklist