dashboard-mobile-chart-compaction

Refactor dashboard chart legends, tooltips, and breakdowns for small mobile viewports.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/TECH-HY/SKILLS --skill dashboard-mobile-chart-compaction-tech-hy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dashboard-mobile-chart-compaction
Source: https://github.com/TECH-HY/SKILLS/tree/main/skills/dashboard-mobile-chart-compaction
Command: npx skills add https://github.com/TECH-HY/SKILLS --skill dashboard-mobile-chart-compaction-tech-hy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Analytical charts that work on desktop often break on phones: tooltips slide off-screen, legends grow taller than the chart, and breakdown panels cover the plot. This Skill provides a workflow and design rules for making chart explanations readable at small viewport widths. ## Core Features & Use Cases - Mobile breakdown cards: Replace oversized floating tooltips with a compact card below the chart that shows the current x-axis label, active series values, and a total line. - Legend compaction: Convert tall side legends on donut and pie charts into wrapped chip lists or compact grids placed below the chart. - Touch-safe interaction: Drive the mobile explanation state from tap or chart focus instead of hover only, with active-series emphasis in both the chart and the breakdown rows. - Use Case: A Recharts analytics dashboard renders fine on desktop but its tooltip overflows at 375 px width. Use this Skill to split behavior: keep the desktop tooltip, add a mobile breakdown card, compress the legend, and verify at 320 px. ## Quick Start Use the dashboard-mobile-chart-compaction skill to refactor my dashboard so the chart tooltip and legend stay readable on phone screens without covering the plot.

Frequently Asked Questions about dashboard-mobile-chart-compaction

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix chart tooltips that overflow on mobile screens?

Replace the floating tooltip on mobile with a compact breakdown card rendered below the chart. The card shows the current x-axis label, active series values, and a total line, and it updates from touch or chart selection rather than hover alone.

How do I make a donut chart legend fit on a phone?

Hide the tall side legend on mobile and move it below the donut as a compact grid or wrapped chip list. Shorten long labels and include the most useful secondary number, often the percent, directly in each legend item.

Does this approach work with Recharts dashboards?

Yes, the Skill pairs especially well with interactive Recharts dashboards, but the layout principles are library-agnostic. The same breakdown-card and legend-compaction patterns apply to any charting library that renders tooltips and legends.

Why does my mobile chart tooltip cover the data?

Desktop-style floating overlays often exceed phone viewports and block the plot. The fix is to move explanatory content out of the plot area into a card below the chart, keeping the desktop tooltip only where it still fits.

What viewport width should I test for mobile chart layouts?

Verify the smallest intended viewport, usually around 320 px wide. Check for no horizontal overflow, visible values, an uncovered chart, obvious active-series highlighting, tappable legend items, and a readable total row.