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
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
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 like this
Build a 100-Person Icon Array Demographic Infographic in One HTML File
You get a single HTML file that shows a fictional town as 100 SVG person icons, with tabs for commute, age and housing and an interactive legend that highlights each group.
Build a Before-and-After Statistics Infographic With Color-Coded Change Arrows
A single HTML infographic comparing two years across nine metrics, showing old and new values, absolute and percent change, and arrows colored by whether up is good.
Build a Budget Allocation Treemap Infographic in a Single HTML File
You get one HTML file that draws a squarified treemap of a city budget, hides labels on small blocks, and shows a details panel when you tap or click any block.
Build a Classroom Grade Distribution Infographic with Histogram and Quartiles
A single HTML file that turns an inline array of class scores into a histogram with mean and median markers, a box plot, stat cards and a plain-language summary.
Build a Company Fact Sheet One-Pager with Animated Stats and a Location Map
You get a single HTML file laid out like an investor or press fact sheet, with animated stat counters, mission, leadership, milestones, an interactive SVG office map and a brand-color theme switch.
Build a Creator Media Kit One-Pager With Audience Stats in HTML
A pitch-ready creator media kit page with animated follower counts, platform tabs, audience demographic bars, engagement benchmarks and a clickable package quote builder.