Home
cd ../playbooks
File OrganizationBeginner

CSV Data Visualizer

Create professional data visualizations, statistical reports, and interactive dashboards from CSV files for analysis and presentations.

5 minutes
By AI LabsSource
#csv#visualization#charts#dashboards#data-analysis#plotly

You have a CSV full of data and your boss wants a presentation-ready dashboard by tomorrow. Excel charts look amateurish, Tableau costs $70/month, and learning D3.js would take longer than the deadline allows.

Who it's for: analysts creating reports for stakeholders, managers presenting data at meetings, researchers visualizing study results, startup founders building investor dashboards, teams needing quick data presentations

Example

"Create a dashboard from our sales data CSV" → Interactive HTML dashboard with histograms, trend lines, scatter plots, and heatmaps using Plotly — exportable as PNG for slides or shareable as a standalone HTML file

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

# CSV Data Visualizer

## Your Role
You are my data visualization specialist. Help me create professional charts, statistical reports, and interactive dashboards from CSV files.

## Capabilities

### Individual Visualizations
- Histograms for distribution analysis
- Box plots and violin plots for comparisons
- Scatter plots for relationships
- Correlation heatmaps
- Line charts for time series
- Bar charts for categories

### Data Profiling
- Statistical summaries
- Data quality reports
- Missing value analysis
- Column type detection

### Dashboard Creation
- Multi-plot layouts
- Interactive HTML reports
- Presentation-ready exports

## Workflow

### Step 1: Data Profiling (Always First)
Before visualizing, understand the data:

```markdown
## Data Profile: [filename]

### Overview
- Rows: X
- Columns: Y
- Date range: [if applicable]

### Column Summary
| Column | Type | Missing | Unique | Sample Values |
|--------|------|---------|--------|---------------|
| col1 | numeric | 0% | 100 | 1, 2, 3 |
| col2 | text | 5% | 10 | A, B, C |

### Quality Issues
- [Issue 1]
- [Issue 2]
```

### Step 2: Choose Visualization Type

| Data Question | Recommended Chart |
|---------------|------------------|
| Distribution of one variable | Histogram, Box plot |
| Compare distributions | Violin plot, Side-by-side box |
| Relationship between variables | Scatter plot |
| Correlation overview | Heatmap |
| Trend over time | Line chart |
| Compare categories | Bar chart |
| Part of whole | Pie chart (use sparingly) |

### Step 3: Create Visualizations

#### Using Python (Plotly)
```python
import pandas as pd
import plotly.express as px

df = pd.read_csv('data.csv')

# Histogram
fig = px.histogram(df, x='column_name', title='Distribution')
fig.write_html('histogram.html')

# Scatter plot
fig = px.scatter(df, x='col1', y='col2', color='category')
fig.write_html('scatter.html')

# Line chart
fig = px.line(df, x='date', y='value', title='Trend')
fig.write_html('trend.html')

# Heatmap
correlation = df.corr()
fig = px.imshow(correlation, title='Correlation Matrix')
fig.write_html('heatmap.html')
```

### Step 4: Create Dashboards

For comprehensive analysis, create multi-plot dashboards:

```python
from plotly.subplots import make_subplots
import plotly.graph_objects as go

fig = make_subplots(
    rows=2, cols=2,
    subplot_titles=['Chart 1', 'Chart 2', 'Chart 3', 'Chart 4']
)

# Add traces to each subplot
fig.add_trace(go.Histogram(x=df['col1']), row=1, col=1)
fig.add_trace(go.Scatter(x=df['x'], y=df['y']), row=1, col=2)
# ... more traces

fig.update_layout(height=800, title='Dashboard')
fig.write_html('dashboard.html')
```

### Step 5: Export for Presentation

**HTML** (interactive):
```python
fig.write_html('visualization.html')
```

**PNG** (static):
```python
fig.write_image('visualization.png')  # requires kaleido
```

**PDF** (print-ready):
```python
fig.write_image('visualization.pdf')
```

## Best Practices

### Dashboard Design
- Limit to 6-9 plots maximum
- Group related visualizations
- Use consistent color schemes
- Include clear titles and labels

### Chart Clarity
- Always label axes
- Add descriptive titles
- Use legends when needed
- Avoid chart junk

### Data Handling
- Handle missing values appropriately
- Check for outliers
- Normalize scales when comparing

## Dependencies
```bash
pip install pandas plotly numpy kaleido
```

## Output Standards
- Profile data before visualizing
- Choose appropriate chart types
- Provide interactive HTML when possible
- Include static exports for reports
- Document any data transformations

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

Create professional visualizations from CSV files. Generate histograms, scatter plots, heatmaps, line charts, and interactive dashboards. Export to HTML, PNG, or PDF for reports and presentations.


Quick Start

Step 1: Create a Visualization Folder

mkdir -p ~/Documents/DataViz

Step 2: Download the Template

Click Download above, then:

mv ~/Downloads/CLAUDE.md ~/Documents/DataViz/

Step 3: Add Your Data

Copy your CSV files to the folder.

Step 4: Start Visualizing

cd ~/Documents/DataViz
claude

Then ask: "Create a dashboard showing the key trends in my data"


Visualization Types

Chart Type Best For
Histogram Distribution of single variable
Box Plot Comparing distributions
Violin Plot Distribution shape comparison
Scatter Plot Relationship between two variables
Heatmap Correlation matrices
Line Chart Trends over time
Bar Chart Categorical comparisons

Example Prompts

Individual Charts

  • "Create a histogram of the sales column"
  • "Show a scatter plot of price vs. quantity"
  • "Generate a correlation heatmap"

Data Profiling

  • "Profile this dataset and show quality issues"
  • "Generate a statistical summary report"
  • "Identify missing data patterns"

Dashboards

  • "Create a dashboard with the key metrics"
  • "Build an interactive report for this data"
  • "Generate a multi-chart overview"

Output Formats

Format Best For
HTML Interactive exploration
PNG Reports and documents
PDF Print-ready publications
SVG Scalable graphics

Tips

  • Profile first: Always understand your data before visualizing
  • Keep it simple: Dashboards work best with 6-9 plots maximum
  • Group logically: Related visualizations should be near each other
  • Label clearly: Titles, axes, and legends matter

$Related Playbooks

File Organization

Data Analyst Toolkit — CSV Analysis & Dashboard Generator

Analyze CSV and Excel data with automatic missing value detection, intelligent imputation, and interactive Plotly dashboards. Generate exploratory data analysis reports in minutes with Claude Code.

10 minutes
Intermediate
File Organization

7-Minute Digital Declutter

Complete digital cleanup of photos, documents, and downloads in 7 minutes with intelligent recommendations.

5 minutes
Beginner
File Organization

Disk Space Analyzer

Find exactly what's eating your disk space with categorized breakdown and prioritized cleanup recommendations.

5 minutes
Beginner
File Organization

Duplicate File Detector

Find exact duplicates, near-duplicates, and version variants across your files with smart recommendations - never auto-deletes.

5 minutes
Beginner
File Organization

CSV & Excel Data Analyst

Ask questions about your spreadsheets in plain English. Get insights, summaries, and visualizations without knowing formulas or pivot tables.

5 minutes
Beginner
File Organization

Smart File Organizer

Organize and rename files based on content analysis

10 minutes
Advanced
File Organization

Natural Language Home Automation

Translate natural language into home automation configs for Home Assistant, HomeKit, and SmartThings.

10 minutes
Intermediate
File Organization

Intelligent File Organizer

Analyze folders, detect duplicates, suggest logical arrangements, and automate cleanup with context-aware file organization.

5 minutes
Beginner
File Organization

Document Layout Analyzer

Detect text blocks, tables, figures, and reading order in complex documents using surya.

10 minutes
Beginner
File Organization

Mac Performance Diagnostics

Run diagnostic commands, analyze results in plain English, and get resolution steps for Mac performance issues.

5 minutes
Beginner
File Organization

Markdown to Office Converter

Convert Markdown to Word, PowerPoint, PDF, and other Office formats using Pandoc.

10 minutes
Advanced
File Organization

Office to Markdown Converter

Convert Office documents to Markdown for version control and AI processing using Microsoft's markitdown.

10 minutes
Advanced

Browse all File Organization playbooks →