Skip to content

Fix tooltip metadata, null display, legend sort, and filter requirement#22

Open
NetZissou wants to merge 2 commits intomainfrom
fix/precalculated-tooltip-null
Open

Fix tooltip metadata, null display, legend sort, and filter requirement#22
NetZissou wants to merge 2 commits intomainfrom
fix/precalculated-tooltip-null

Conversation

@NetZissou
Copy link
Copy Markdown
Collaborator

@NetZissou NetZissou commented Mar 30, 2026

Summary

  • Tooltip: replaced hard [:8] cap with smart skip_cols (uuid, image URLs) + cap at 15 -- key fields like species, scientific_name, common_name now visible on hover
  • Null display: fillna("N/A") in create_cluster_dataframe so Altair no longer renders "null" in tooltips
  • Legend sort: cluster IDs sort numerically (0, 1, 2, ... 10, 11, 12) instead of alphabetically (1, 10, 11, 12, 2, ...)
  • Filter optional: filtered_df initialized to full dataset on file load -- users can cluster immediately without applying filters first

Addresses #20

Generated with Claude Code

… requirement

- Tooltip: replace [:8] cap with smart skip_cols (uuid, image URLs) + cap at 15
- Null display: fillna("N/A") in create_cluster_dataframe for clean Altair tooltips
- Legend: sort cluster IDs numerically (0,1,2...10,11) instead of alphabetically
- Filter: initialize filtered_df to full dataset on load so filtering is optional

Closes #20 (tooltip and null display items)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Member

@egrace479 egrace479 left a comment

Choose a reason for hiding this comment

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

🚀

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

2 participants