Build a Private Net Worth Snapshot Infographic in a Single HTML File

A one-page personal balance sheet with editable assets and debts, stacked balance bars, payoff progress rings and live totals that run fully offline.

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 information designer. Build "Ledgerlight", a one-page personal net worth snapshot infographic that runs fully offline and keeps every number private in the browser. The page shows editable asset rows (name, value) and debt rows (name, original amount, current balance), a headline net worth figure, two horizontal stacked bars comparing total assets and total liabilities on one shared scale, and SVG progress rings showing how much of each debt has been paid off.

Rules:
1. Every value is an inline input; totals, bars, rings and net worth update instantly as you type. Include Add and Remove buttons for each list and a Reset to sample data button. No form element, no storage, no network calls.
2. Preload realistic sample data: checking, savings, retirement, home value, car; mortgage, car loan, student loan, credit card.
3. Use a calm palette: off-white background, deep ink text, green shades for assets, coral and amber for debts, with a legend showing each amount and share.
4. Format currency with Intl.NumberFormat, show negative net worth in coral, and display a debt-to-asset ratio with a short plain-language label.
5. Responsive card grid from 360 to 1280 pixels; bars and rings animate smoothly unless prefers-reduced-motion is set.
6. Labeled inputs, visible focus states and full keyboard use.

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: Ledgerlight, a private net worth snapshot you edit in place.

The page opens with sample figures: net worth, total assets, total liabilities and a debt-to-asset ratio. Two stacked bars share one scale, so the gap between them is your net worth. Rings show how much of each loan is paid off. Change any amount, rename rows, add or remove assets and debts, and watch everything update. Hit Reset to restore the sample.

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

Tips and common edits

Why this works

  • Both stacked bars use one shared scale, so the difference in length shows net worth at a glance without any extra chart.
  • Payoff rings compare original and current balances, so progress reads as a percentage instead of a pile of raw numbers.
  • Banning storage, forms and network calls keeps the file private, sandbox-safe and working the moment it opens.

Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as networth.html and open it in any browser, or view it in the chat's preview or canvas. Nothing you type leaves your device.

Common edits

  • Change the currency by swapping the Intl.NumberFormat locale and currency code, for example en-GB and GBP.
  • Add a monthly payment field to each debt and show an estimated payoff month under each ring.

Prompt details

By
Prompts-GPT editors
Published

Did this prompt work?

Keep exploring

More in Infographics