-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat: add tooltip histograms and support for non-visual properties #96
Conversation
✅ Deploy Preview for calm-platypus-50e85d canceled.
|
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.
Really nice Fritz! Sorry for the delay on the review. I tried it out this morning and am very impressed. Just had a few comments about implementation, mostly in the front end.
Co-authored-by: Trevor Manz <trevor.j.manz@gmail.com>
Co-authored-by: Trevor Manz <trevor.j.manz@gmail.com>
…upyter-scatter into flekschas/tooltip-histograms
Somehow applying it right in github.com didn't work
…upyter-scatter into flekschas/tooltip-histograms
…th` to `histograms_size` Treemaps with the `dice` algorithm is the same visualization as before but it generalizes better to make small populations more easily readable when using other tiling algorithms like `binary` or `squarify`.
…upyter-scatter into flekschas/tooltip-histograms
Congrats on merging this! Sorry I couldn't find the time to review sooner. |
No worries at all. I just merged it to get started on the final feature for the tool tip before releasing v0.15 :) |
This PR adds support for showing histograms in the tooltip and for displaying non-visualized properties.
Description
The tooltip now features a histogram next to the values, which is visualized as either a bar chart (for numerical properties) or as a horizontal stacked bar (for categorical properties)
The histograms are shown by default, but if annoying, they can be turned off via
scatter.tooltip(histograms=False)
.Additionally, one can now show non-visualized properties (via their column names) in the tooltip via
scatter.tooltip(contents=['x', 'y', 'color', 'A_COLUMN_NOT_VISUALIZED'])
. E.g.:The reason I added histograms is to give the user the ability to correlate how the hovered point compares to all other points. For the visual properties this might not be super important because one can see the distribution. But for non-visualized properties this can help clarify why a certain set of points form a cluster and how that cluster differs from others. This is also the reason why it's useful to show non-visualized properties in the tooltip.
Checklist
CHANGELOG.md
updatedAPI.md
/README.md
added or updated