Data demo
The CSV-to-Interactive-Visual Trick
Give Claude a small dataset and ask it to produce an interactive chart, assumptions, anomalies, and a shareable artifact version.
"Run Python and bash code"
Setup: what the audience sees
The reveal is a chart that explains itself. Claude can inspect the data, write code or a visual, and turn the result into something a stakeholder can explore.
The setup matters because Claude demos fail when the prompt hides the goal, mixes private data into a public reveal, or asks for a finished answer without giving the model a way to expose assumptions.
- Use a small CSV or paste synthetic tabular data in the prompt.
- Ask Claude to show assumptions before charting.
- Keep the first run exploratory, then ask for a shareable artifact after you approve the analysis frame.
What this does not prove
It does not prove the dataset is clean or the metric is meaningful. The prompt must make assumptions and exclusions visible.
<data>
Paste a CSV here with columns: week, channel, spend, leads, qualified_leads.
</data>
<task>
Analyze the data and create an interactive visual that helps a non-analyst see which channel is improving.
</task>
<requirements>
- First list data-quality checks and assumptions.
- Calculate cost per qualified lead by week and channel.
- Build a visual with a clear title, legend, and plain-English takeaway.
- Include anomaly notes and a "do not overinterpret" note.
- If an artifact is appropriate, make it reusable with sample-data replacement instructions.
</requirements> The reveal: what should happen
- Claude should name missing values, odd rows, and metric caveats before presenting the chart.
- The visual should privilege the business question over decorative charting.
- Replacement instructions make the demo reusable for another dataset.
Verification steps
A demo becomes useful when the audience can inspect it. Use the steps below to turn the reveal from theater into a repeatable workflow.
- Manually recompute one row of the metric.
- Ask for the calculation formula in plain English.
- Change one input row and verify the trend changes in the expected direction.
Guardrails
- Remove customer identifiers before uploading data.
- Avoid causal language unless the dataset supports it.
- For recurring dashboards, move from ad hoc prompts to a tested pipeline.
Variations
- Classroom grade distributions with anonymized data.
- Support ticket volume by product area.
- Sales funnel conversion by campaign.
FAQ
Should the first prompt ask for a finished dashboard?
No. Ask for checks and assumptions first, then ask Claude to build the visual once the framing is right.
Can this become a Claude artifact?
Yes, especially when the output is a reusable visual or calculator rather than a one-time chart.
Related demos
Artifacts
Artifact Prototype
Give Claude a messy product idea and ask for a shareable interactive prototype with states, empty cases, and iteration notes.
Documents
PDF Evidence Table
Upload a PDF and ask Claude to separate claims, supporting pages, uncertainty, and follow-up checks into a reusable evidence table.
Primary Sources
These demos cite official Anthropic docs or help-center pages for capability claims. They do not claim identical output across accounts, plans, models, or dates.
Claude Platform Docs
Code execution tool
The code execution tool runs Bash and Python in a sandbox to analyze data, generate files, and manipulate files.
Claude Help Center
Custom visuals in chat and Cowork
Claude can generate diagrams, charts, and interactive visuals in chat when a visual is useful.
Claude Help Center
What are artifacts and how do I use them?
Artifacts are substantial standalone outputs such as documents, code snippets, HTML sites, SVGs, diagrams, and React components.
Claude Platform Docs
Increase output consistency
When exact JSON conformance matters, Anthropic recommends structured outputs rather than prompt-only formatting.