---
name: make-an-animated-chart-for-a-board-presentation-in-html
description: "You get one HTML slide where a line chart draws itself, the headline KPI counts up and one annotation lands on the key month, with a replay key for presenting."
---

# Make an Animated Chart for a Board Presentation in HTML

Source: https://prompts-gpt.com/prompts/make-an-animated-chart-for-a-board-presentation-in-html

You get one HTML slide where a line chart draws itself, the headline KPI counts up and one annotation lands on the key month, with a replay key for presenting.

## Prompt

```
Act as a senior front-end developer and presentation designer.

Build "Larkspur Analytics ARR Slide", a single 16:9 slide that tells one KPI story. Preload fictional data: KPI "Annual recurring revenue", 12 monthly values in $M from Jan to Dec (8.7, 8.9, 9.2, 9.4, 9.6, 9.9, 10.1, 10.9, 11.2, 11.4, 11.7, 12.0), a target of $11.5M, a headline computed from the data such as "Annual recurring revenue up 38% over 12 months", and a one-line takeaway.

Rules:
1. Layout: a 1280x720 slide scaled to fit the window, white in light mode and deep navy in dark mode, one accent colour, system fonts, big number left, line chart right, current year computed at runtime.
2. Sequence on load: gridlines fade in, the line draws left to right via SVG stroke-dasharray, the big number counts up from 0 in sync, the area fades in, one callout pops in on the month with the biggest jump, then the takeaway appears.
3. Controls: Replay button plus R or Space, and a Presenting toggle on F that hides all controls and uses requestFullscreen with a CSS full-window fallback.
4. An Edit data panel with KPI name, unit prefix and suffix, target, takeaway, month labels and 12 comma-separated values; Apply redraws and replays, with clear validation messages.
5. Under prefers-reduced-motion show the finished slide with a short fade; visible focus states; no network, storage or external assets.

Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.
```

## Usage Notes

Paste into Claude and open the result as an artifact, or use ChatGPT canvas or Gemini Canvas, or save the code as an .html file. Present it full screen from a browser tab, or screen-record a replay for PowerPoint, Keynote or Google Slides.
