Data Viz

by JinFanZheng

artdata

Data visualization for charts and graphs. Use when user needs "画图/图表/可视化". Creates static PNG or interactive HTML charts from data.

Skill Details

Repository Files

7 files in this skill directory


name: data-viz description: Data visualization for charts and graphs. Use when user needs "画图/图表/可视化". Creates static PNG or interactive HTML charts from data.

Mental Model

Visualization is choosing the right chart to answer a specific question. Chart type depends on data relationship, not aesthetics.

Chart Selection

Question Chart Type
Trends over time? Line chart
Compare categories? Bar chart
Show distribution? Histogram, box plot
Relationship between variables? Scatter plot
Parts of whole? Pie, stacked bar
2D patterns? Heatmap
Financial data? Candlestick, OHLC

Anti-Patterns (NEVER)

  • Don't use Chinese characters anywhere in charts - use English for labels, titles, legends, data labels
  • Don't use Chinese characters in filenames (ASCII only)
  • Don't pick wrong chart type for the question
  • Don't overload with data → aggregate or sample
  • Don't forget labels, title, legend
  • Don't use poor colors (colorblind-safe palettes)

Chart language: Always use English (titles, axes, legends, labels) to avoid font rendering issues.

Output Formats

  • PNG: Static, high-quality for reports
  • HTML: Interactive (zoom, pan, hover)
  • SVG: Vector for editing

Filename: {chart_type}_{timestamp}.{ext} (ASCII only)

Workflow

  1. Ask: What's the question? What story to tell?
  2. Load data from CSV/JSON (or data-analysis output)
  3. Choose chart type based on question
  4. Create Python script and execute using virtual environment:
    .venv/bin/python script.py
    
  5. Return file path to user

Python Environment

Auto-initialize virtual environment if needed, then execute:

# Navigate to skill directory
cd skills/data-viz

# Auto-create venv if not exists
if [ ! -f ".venv/bin/python" ]; then
    echo "Creating Python environment..."
    ./setup.sh
fi

# Execute script
.venv/bin/python your_script.py

The setup script auto-installs: matplotlib, seaborn, plotly, pandas with Chinese font support.

References (load on demand)

For chart APIs and code templates, load: references/REFERENCE.md, references/templates.md

Related Skills

Xlsx

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas

data

Clickhouse Io

ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.

datacli

Clickhouse Io

ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.

datacli

Analyzing Financial Statements

This skill calculates key financial ratios and metrics from financial statement data for investment analysis

data

Data Storytelling

Transform data into compelling narratives using visualization, context, and persuasive structure. Use when presenting analytics to stakeholders, creating data reports, or building executive presentations.

data

Team Composition Analysis

This skill should be used when the user asks to "plan team structure", "determine hiring needs", "design org chart", "calculate compensation", "plan equity allocation", or requests organizational design and headcount planning for a startup.

artdesign

Startup Financial Modeling

This skill should be used when the user asks to "create financial projections", "build a financial model", "forecast revenue", "calculate burn rate", "estimate runway", "model cash flow", or requests 3-5 year financial planning for a startup.

art

Kpi Dashboard Design

Design effective KPI dashboards with metrics selection, visualization best practices, and real-time monitoring patterns. Use when building business dashboards, selecting metrics, or designing data visualization layouts.

designdata

Dbt Transformation Patterns

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

testingdocumenttool

Startup Metrics Framework

This skill should be used when the user asks about "key startup metrics", "SaaS metrics", "CAC and LTV", "unit economics", "burn multiple", "rule of 40", "marketplace metrics", or requests guidance on tracking and optimizing business performance metrics.

art

Skill Information

Category:Creative
Last Updated:1/17/2026