feat: add legend to pie charts#2182
Conversation
Add a legend panel alongside pie charts that maps each color to its corresponding label and value. The legend: - Displays a colored swatch, label text, and numeric value for each slice - Sits on the right side of the pie chart - Scrolls vertically when there are many items - Is capped at 40% width to preserve chart visibility - Uses Mantine ScrollArea for smooth overflow handling - Respects the chart's number format configuration Resolves HDX-4136 Co-authored-by: Mike Shi <mike@hyperdx.io>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
@cursoragent the legend clips if there are a lot of groups, can you make it scrollable? |
|
All 815 tests pass across all 15 test suites. The fix is working correctly. Here's a summary of what was done: Problem: The pie chart legend was clipping content when there are many groups because Fix: Replaced Testing:
|
Co-authored-by: Mike Shi <mike@hyperdx.io>
E2E Test Results✅ All tests passed • 159 passed • 3 skipped • 1094s
Tests ran across 4 shards in parallel. |
Co-authored-by: Mike Shi <mike@hyperdx.io>
🔵 Tier 2 — Low RiskSmall, isolated change with no API route or data model modifications. Why this tier:
Review process: AI review + quick human skim (target: 5–15 min). Reviewer validates AI assessment and checks for domain-specific concerns. Stats
|
PR Review
|


Add a legend panel alongside pie charts that maps each color to its corresponding label and value. The legend:
Resolves HDX-4136
Summary
Screenshots or video
How to test locally or on Vercel
References