Build a 12-Week Fitness Progress Tracker Infographic in a Single HTML File

Generates a one-page fitness report with bodyweight and lift line charts, personal-record badges, a streak calendar and an instant kg/lb toggle, all from built-in sample data.

You getone complete HTML file in a single code block, then 3 short ideas to extend it.

The prompt

Prompt
Act as a senior front-end developer and data-visualization designer. Build "Ironline", a 12-week fitness progress report infographic for a sample athlete, Maya Okafor, as a single self-contained HTML file. Hard-code realistic sample data in kilograms: weekly bodyweight trending from 82.4 to 77.9 with a 78 kg goal, weekly top sets for back squat, bench press and deadlift, and an 84-day log where each day is strength, cardio, mobility or rest. Follow these rules:
1) Header with title, date range and a kg/lb segmented toggle. The U key also switches units. The toggle converts every number, axis label, badge and tooltip instantly.
2) A KPI row showing current bodyweight with its change, the big-three total, sessions logged and the longest streak.
3) Two SVG line charts drawn with JavaScript:
- Bodyweight, with a dashed goal line and a soft area fill.
- Lifts, with three colored series, legend buttons that show or hide each series, and filled dots marking new personal records.
4) PR badges computed from the data. A streak calendar of 12 weeks by 7 days, colored by workout type, with a legend.
5) Every data point and calendar day shows a tooltip on hover, tap or keyboard focus.
6) Design and technical limits:
- Warm off-white background, three accent colors and a system font.
- Responsive from 360 to 1280px, with charts redrawn on resize.
- Skip the line-draw animation under prefers-reduced-motion.
- No external resources or storage.

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

Example output

One HTML file. Save it and open it in any browser.Open full screen

Example: Ironline, a 12-week strength-block progress report for a sample athlete.

The page opens with four headline numbers, a bodyweight chart with a goal line, a lift chart with squat, bench and deadlift, PR badges and a color-coded streak calendar. Use the kg / lb toggle or press U to convert every figure. Hover, tap or Tab to any dot or calendar day for details. Click a legend chip to hide or show a lift.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Data is stored once in kg and converted at render time, so the unit toggle can never leave a stale number on the page.
  • The charts are plain SVG strings rebuilt from container width, so they stay crisp and fit any screen with no chart library.
  • Fixed sample data, explicit KPIs and named colors give the model no open choices, so the first result looks finished.

Paste into ChatGPT, Claude or Gemini. Save the reply's code as ironline.html and open it in any browser, or use the chat's preview or canvas. To chart your own numbers, swap in your values in the data arrays.

Common edits

  • Swap in your own weekly weights, lifts and day codes (S, C, M, R) to chart a real training block.
  • Change the accent colors or the lift names, for example overhead press or pull-ups, to match another sport or program.

Prompt details

By
Prompts-GPT editors
Published

Did this prompt work?

Keep exploring

More in Infographics