-
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
Update design of tooltips #4156
Comments
I absolutely love this!! CC @samwinslow @EDsCODE, what are your thoughts on this? We could add this next. |
I don't think it would be too hard to add a gradient to the graph shape, but if we're changing it anyway, this library looks super cool: https://airbnb.io/visx/gallery — it's also very declarative in its code style. |
Tooltips + vertical line actually seem pretty easy: |
Ohh if we're keen on changing libraries for sure |
Sub-issue: #4344 |
Progress update: Managed to get this going without switching chart libraries! TODO (somewhat of a note-to-self):
|
Love this, looking great @samwinslow! Wonder if we can add the subtle background too with this library. |
@corywatilo Do you have any advice for how to make this look better at a very high data density? Eric suggested having each line isolate itself by reducing the opacity of the other lines on hover; but this isn't an ideal approach IMO because it kind of defeats the purpose of the scrubber bar, which is great for comparing data. From user feedback, it was annoying to mouse over different specific areas of the screen such as individual points; having each line have a separate hover-scrubber interaction would introduce this same problem again. For example, pretend all these datasets have different filters. It starts looking ugly when more verbose filters are applied... would you mind mocking up a typography treatment with this in mind? |
For starters I think we can simplify the text (e.g. "Pageview ($current_url ..."), I was actually going to work on an issue today just to work out how to improve that copy in a way that makes sense for non-technical users too. If you can give me a couple of hours here, might be able to help. |
@paolodamico Just pushed another commit which makes the filter property keys human-readable; that part is pretty simple. Previously I introduced the I wonder if there's a better way to represent the string |
Which branch/PR? But yeah, let me explore a little bit and get back to you on this. |
|
Related: Mocked up a version with multiple plotted lines in #4514, each with a fill being a gradient using the primary color of the line. (Figma mock for reference) Note: Probably use new line styles, not specific colors from this linked conceptual mock. |
Released FF right now for users only in PostHog Cloud: PostHog Team, Beta Users & 20% of user base. |
EDIT: This issue now encompasses only the UI/implementation for tooltips only. The main chart components are encompassed in #4758.
At @paolodamico's request, I put some thought into making graphs more visually appealing. After some research, I landed on this:
The text was updated successfully, but these errors were encountered: