Home
cd ../playbooks
Data & ReportingIntermediate

Interactive Dashboard Builder

Build self-contained HTML dashboards with Chart.js for data visualization

10 minutes
By AnthropicSource
#dashboard#chart-js#html#visualization#interactive

You need a dashboard but don't have Tableau, your team can't access your Jupyter notebook, and asking engineering to build one means waiting 3 sprints. You just need charts, filters, and tables in something anyone can open.

Who it's for: analysts who need shareable dashboards without enterprise BI tools, managers wanting quick data visualizations for team meetings, consultants delivering interactive reports to clients, startups without Tableau or Looker budgets, anyone who needs a dashboard they can email as a single file

Example

"Build a dashboard showing our Q4 sales data with filters by region and product" → Self-contained HTML file with Chart.js visualizations, dropdown filters, sortable tables, and professional styling — opens in any browser, no server needed, shareable as an email attachment

CLAUDE.md Template

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

Or install from your terminal:
npx ccplaybooks add interactive-dashboard-builder
# Build Interactive Dashboards

Build a self-contained interactive HTML dashboard with charts, filters, tables, and professional styling. Opens directly in a browser -- no server or dependencies required.

## Usage

Describe the dashboard you want to build and optionally provide a data source.

## Workflow

### 1. Understand the Dashboard Requirements

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

Builds self-contained interactive HTML dashboards with charts, filters, tables, and professional styling. The generated dashboard opens directly in a browser with no server or dependencies required -- just share the HTML file with anyone.


Quick Start

Step 1: Download the Template

Click Download above to get the CLAUDE.md file.

Step 2: Set Up Your Project

Create a project folder and place the template inside:

my-dashboard-project/
├── CLAUDE.md
├── data/          # Place CSV/Excel files here
└── dashboards/    # Generated dashboards go here

Step 3: Start Working

claude

Say: "Build a monthly sales dashboard with revenue trend, top products, and regional breakdown"


Dashboard Layout

Every dashboard follows a standard layout pattern:

  • KPI cards at the top for headline numbers (2-4 cards)
  • Charts in the middle section for trends and breakdowns (1-3 charts)
  • Detail table at the bottom for drill-down data (sortable, scrollable)
  • Filters in the header or sidebar depending on complexity

Supported Chart Types

  • Line chart: Time series trends
  • Bar chart: Category comparisons
  • Doughnut chart: Composition (when fewer than 6 categories)
  • Stacked bar: Composition over time
  • Mixed (bar + line): Volume with rate overlay

Data Size Guidelines

Data Size Approach
Less than 1,000 rows Embed directly in HTML with full interactivity
1,000 - 10,000 rows Embed in HTML, may need to pre-aggregate for charts
10,000 - 100,000 rows Pre-aggregate server-side, embed only aggregated data
More than 100,000 rows Not suitable for client-side dashboard

Tips

  • Dashboards are fully self-contained HTML files -- share them with anyone by sending the file
  • For real-time dashboards, consider connecting to a BI tool instead; these dashboards are point-in-time snapshots
  • Request "dark mode" or "presentation mode" for different styling
  • You can request a specific color scheme to match your brand

Example Prompts

"Build a monthly sales dashboard with revenue trend, top products, and regional breakdown. Data is in the orders table."
"Here's our support ticket data [paste CSV]. Build a dashboard showing volume by priority, response time trends, and resolution rates."
"Create a template executive dashboard for a SaaS company showing MRR, churn, new customers, and NPS. Use sample data."

$Related Playbooks

Browse all Data & Reporting playbooks →