visualizing-data
БесплатноЗапускает вложенные скриптыНе проверенBuilds dashboards, reports, and data-driven interfaces requiring charts, graphs, or visual analytics. Provides systematic framework for selecting appropriate…
от ancoleman★ 535 звёзд на GitHubОб этом скилле
Data Visualization Component Library
Systematic guidance for selecting and implementing effective data visualizations, matching data characteristics with appropriate visualization types, ensuring clarity, accessibility, and impact.
Overview
Data visualization transforms raw data into visual representations that reveal patterns, trends, and insights. This skill provides:
- Selection Framework: Systematic decision trees from data type + purpose → chart type
- 24+ Visualization Methods: Organized by analytical purpose
- Accessibility Patterns: WCAG 2.1 AA compliance, colorblind-safe palettes
- Performance Strategies: Optimize for dataset size (<1000 to >100K points)
- Multi-Language Support: JavaScript/TypeScript (primary), Python, Rust, Go
Quick Start Workflow
Step 1: Assess Data
What type? [categorical | continuous | temporal | spatial | hierarchical]
How many dimensions? [1D | 2D | multivariate]
How many points? [<100 | 100-1K | 1K-10K | >10K]
Step 2: Determine Purpose
What story to tell? [comparison | trend | distribution | relationship | composition | flow | hierarchy | geographic]
Step 3: Select Chart Type
Quick Selection:
- Compare 5-10 categories → Bar Chart
- Show sales over 12 months → Line Chart
- Display distribution of ages → Histogram or Violin Plot
- Explore correlation → Scatter Plot
- Show budget breakdown → Treemap or Stacked Bar
Complete decision trees: See references/selection-matrix.md
Step 4: Implement
See language sections below for recommended libraries.
Step 5: Apply Accessibility
- Add text alternative (aria-label)
- Ensure 3:1 color contrast minimum
- Use colorblind-safe palette
- Provide data table alternative
Step 6: Optimize Performance
- <1000 points: Standard SVG rendering
1000 points: Sampling or Canvas rendering
- Very large: Server-side aggregation
Purpose-First Selection
Match analytical purpose to chart type:
| Purpose | Chart Types |
|---|---|
| Compare values | Bar Chart, Lollipop Chart |
| Show trends | Line Chart, Area Chart |
| Reveal distributions | Histogram, Violin Plot, Box Plot |
| Explore relationships | Scatter Plot, Bubble Chart |
| Explain composition | Treemap, Stacked Bar, Pie Chart (<6 slices) |
| Visualize flow | Sankey Diagram, Chord Diagram |
| Display hierarchy | Sunburst, Dendrogram, Treemap |
| Show geographic | Choropleth Map, Symbol Map |
Visualization Catalog
Tier 1: Fundamental Primitives
General audiences, straightforward data stories:
- Bar Chart: Compare categories
- Line Chart: Show trends over time
- Scatter Plot: Explore relationships
- Pie Chart: Part-to-whole (max 5-6 slices)
- Area Chart: Emphasize magnitude over time
Tier 2: Purpose-Driven
Specific analytical insights:
- Comparison: Grouped Bar, Lollipop, Bullet Chart
- Trend: Stream Graph, Slope Graph, Sparklines
- Distribution: Violin Plot, Box Plot, Histogram
- Relationship: Bubble Chart, Hexbin Plot
- Composition: Treemap, Sunburst, Waterfall
- Flow: Sankey Diagram, Chord Diagram
Tier 3: Advanced
Complex data, sophisticated audiences:
- Multi-dimensional: Parallel Coordinates, Radar Chart, Small Multiples
- Temporal: Gantt Chart, Calendar Heatmap, Candlestick
- Network: Force-Directed Graph, Adjacency Matrix
Detailed descriptions: See references/chart-catalog.md
Accessibility Requirements (WCAG 2.1 AA)
Text Alternatives
<figure role="img" aria-label="Sales increased 15% from Q3 to Q4">
<svg>...</svg>
</figure>
Color Requirements
- Non-text UI elements: 3:1 minimum contrast
- Text: 4.5:1 minimum (or 3:1 for large text ≥24px)
- Don't rely on color alone - use patterns/textures + labels
Colorblind-Safe Palettes
IBM Palette (Recommended):
#648FFF (Blue), #785EF0 (Purple), #DC267F (Magenta),
#FE6100 (Orange), #FFB000 (Yellow)
Avoid: Red/Green combinations (8% of males have red-green colorblindness)
Keyboard Navigation
- Tab through interactive elements
- Enter/Space to activate tooltips
- Arrow keys to navigate data points
Complete accessibility guide: See references/accessibility.md
Performance by Data Volume
| Rows | Strategy | Implementation |
|---|---|---|
| <1,000 | Direct rendering | Standard libraries (SVG) |
| 1K-10K | Sampling/aggregation | Downsample to ~500 points |
| 10K-100K | Canvas rendering | Switch from SVG to Canvas |
| >100K | Server-side aggregation | Backend processing |
JavaScript/TypeScript Implementation
Recharts (Business Dashboards)
Composable React components, declarative API, responsive by default.
npm install recharts
import { LineChart, Line, XAxis, YAxis, Tooltip, ResponsiveContainer } from 'recharts';
const data = [
{ month: 'Jan', sales: 4000 },
{ month: 'Feb', sales:
Установить visualizing-data в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл visualizing-data?
Builds dashboards, reports, and data-driven interfaces requiring charts, graphs, or visual analytics. Provides systematic framework for selecting appropriate visualizations based on data characteristics and analytical purpose. Includes 24+ visualization types organized by purpose (trends, comparisons, distributions, relationships, flows, hierarchies, geospatial), accessibility patterns (WCAG 2.1 AA compliance), colorblind-safe palettes, and performance optimization strategies. Use when creating visualizations, choosing chart types, displaying data graphically, or designing data interfaces.
Как установить скилл visualizing-data?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл visualizing-data запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic