Using the Legend
The legend panel lets you filter, customize, and explore your protein annotations.
Filtering Categories
Show/Hide Labels
Click any label to toggle its visibility:

- Click once: Hides that category
- Click again: Shows it again
- Double-click shows only that category and hides all others
- When only one label remains: Clicking it shows all labels again
Reordering Labels
Drag labels up or down to reorder them. This changes the drawing order in the scatterplot - labels at the top are drawn on top of others.

The "Others" Group
When there are many categories (default more than 10), less frequent ones are grouped into "Others":
- Click "Others" to expand and see individual labels
- Extract categories of "Others" to show them separately
- Drag labels into "Others" to group them

Settings (Cog Icon)
Click the cog icon (⚙️) in the top-right corner of the legend for advanced options:
| Setting | Description |
|---|---|
| Max legend items | Number of labels to show before grouping into "Others" |
| Shape size | Adjust the size of points in the scatterplot |
| Include shapes | Toggle between circles only or different shapes per category |
| Show duplicate counts | Show count badges on overlapping points and spiderfy on click |
| Color palette | Select from multiple palettes (Kelly's, Okabe-Ito, Tol Bright, Set2, Dark2, Tableau 10) |
| Sorting | Sort by category size, alphabetically, or manual (drag to reorder) |
Saved Settings
Your customizations are automatically saved and restored when you return:
- Per dataset and annotation: Different datasets and annotations keep separate settings
- What's saved: Visibility, colors, shapes, ordering, and settings panel preferences
- Reset: Use "Reset to Defaults" in the settings panel to clear saved preferences
Settings are stored in your browser's localStorage and persist across sessions.
Multi-Label Annotations
When proteins have multiple values (e.g., multiple EC numbers):
- Points display as pie charts
- Each slice represents a different value
- All unique values appear in the legend
Colors and Shapes
Color Assignment
Colors are assigned based on category frequency:
- Most frequent categories get the most visually distinct colors
- Uses Kelly's 22 colors of maximum contrast
- Colors persist when you change sort order, switch projections, or toggle shapes
Special Categories
| Category | Color | Shape |
|---|---|---|
| Others | #999999 | Circle |
| N/A | #DDDDDD | Circle |
Shapes
When shapes are enabled (via settings), categories cycle through:
- Circle
- Square
- Diamond
- Plus
- Triangle-up
- Triangle-down
Shapes are disabled for multi-label annotations (pie charts use circles only).
Color Recycling
When you move a category to "Others":
- Its color slot becomes available
- Extracting a category from "Others" reuses the lowest available slot
- This keeps the most distinct colors assigned to visible categories
Next Steps
- Control Bar Features - Projections and export
- Viewing 3D Structures - AlphaFold integration