What the tech

Search

/ opens search from anywhere. Esc closes it.

Tools

Get the newsletter
Example result of this prompt

Example Example page built by Claude for this page, not by the AI named above. How we make examples

Analytics dashboard UI with live charts and filters

Get a working analytics dashboard with KPI cards, charts, a sortable table and date filters, filled with sample data.

You need
Nothing but the prompt
Written for
Claude, ChatGPT, Lovable
Result
Website

Prompt

You are a product designer and front-end developer. Build an analytics dashboard for what you track as one HTML file with inline CSS and vanilla JavaScript. Load a charting library from a public CDN. Data: generate realistic sample data in JavaScript for the last 90 days, with weekly patterns and a little noise. The metrics are key metrics. Layout: - A left sidebar with navigation and a top bar with a date range filter (7, 30, 90 days) that updates everything. - A row of KPI cards, each showing the value and the change against the previous period, with an arrow and color plus a text label (not color alone). - A line chart over time and a bar chart by category. - A sortable table of the top 10 items. - A light and dark mode toggle. Make it responsive (the sidebar collapses on phones), keyboard-accessible, and use colors that people with color blindness can tell apart. Keep the code tidy and commented so I can swap in my real data later.

Fill in, or keep the brackets and change them later

what you track
key metrics

How to use it

  1. Open Claude or ChatGPT, paste the prompt and fill in the brackets.
  2. Look at the preview, then ask for changes in plain words, such as 'make the header smaller'.
  3. Save the code as index.html and upload it to any static host, or paste the Lovable version into Lovable for a hosted app.
What to expectCharts and filters usually work on the first try, but the numbers are sample data until you connect your own.

Tips

  • Name your real metrics; 'revenue, orders, refunds' gives a far better layout than 'some numbers'.
  • Ask for a CSV import button if you want to load your own data without coding.
  • Keep 4 to 6 KPI cards; more makes the top row hard to read.

Editor: Parham Roudi · Updated November 18, 2026

Similar prompts

All websites and ui