Stops AI-generated UI from defaulting to purple gradients and templated hero sections by forcing a named design direction first.
Data VisualizationSkill
Summary
Anthropic's official data-visualization skill: pick the right chart for the data, then build it with ready-to-run matplotlib, seaborn, and plotly patterns.
Features
- Chart-type selection table mapping 13 data relationships to the right chart
- Explicit anti-patterns: no 3D, no pie charts under 6 categories, dual-axis cautions
- Ready-to-run matplotlib and seaborn recipes: line, ranked bar, histogram, heatmap, small multiples
- Shared rcParams style block with colorblind-safe categorical, sequential, and diverging palettes
- Plotly recipes for interactive line and bubble-scatter charts exported to HTML
- Currency, percent, and K/M/B number axis formatter helper
- Design rules for color, typography, layout, and honest axis scaling
- Accessibility guidance plus a six-item pre-share checklist
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Usage Instructions
Learn how to use this skill with different AI agents.
Example Usage
"Chart monthly revenue by product line for the last 12 months" — the agent recognises a trend over time, picks a multi-series line chart, applies the colorblind-safe palette, titles it with the insight rather than the axes ("Product line A grew 23% YoY"), drops the top and right spines, and formats the y-axis as $1.2M.
Description
What it does
data-visualization is one of six skills in Anthropic's open-source data plugin, part of the knowledge-work-plugins collection. It teaches an agent to choose the right chart for the relationship in the data and produce publication-quality Python figures, instead of defaulting to a generic bar chart.
Chart selection
A lookup table maps 13 data relationships — trend, comparison, ranking, part-to-whole, distribution, correlation, geographic, flow, network, performance-against-target, multi-KPI and more — to a recommended chart plus alternatives. It is matched by an explicit list of what not to do: no 3D, no pie charts below six categories, and clear cautions around dual axes and many-category stacked bars.
Code you can run
A shared style block sets matplotlib rcParams and colorblind-safe categorical, sequential, and diverging palettes. On top of it sit complete recipes for line charts, ranked horizontal bars with value labels, histograms with mean and median markers, seaborn heatmaps, and small multiples, plus a currency/percent/number axis formatter that abbreviates to K, M, and B. Plotly recipes cover interactive line and bubble-scatter charts exported to HTML.
Design and accessibility
Guidance covers purposeful color with grey-out-the-rest highlighting, insight-first titles, chart-junk reduction, meaningful sorting, aspect ratio, and honesty rules such as starting bars at zero and keeping scales consistent across panels. An accessibility section insists on never encoding meaning by color alone, and adds alt text, data-table alternatives, contrast and minimum text sizes, and a six-item checklist to run before sharing.
Notes
Upstream the skill is marked user-invocable: false, so an agent loads it automatically when a charting task appears rather than being called as a slash command. Licensed Apache-2.0.
Related Skills
Skill: Web Design Guidelines
by Vercel
Vercel's official skill for auditing UI code against the Web Interface Guidelines — accessibility, performance and UX rules reported as terse file:line findings.
Skill: Web Performance Audit
by Cloudflare
Audits Core Web Vitals through the Chrome DevTools MCP server — LCP, INP, CLS plus FCP, TBT and Speed Index — and traces each one back to the render-blocking resource or layout shift causing it.
Skill: Web Interface Guidelines
by Vercel
Audit UI code against Vercel's Web Interface Guidelines — accessibility, interaction, performance and layout rules — reported as terse file:line findings.