Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
GuidesNovember 22, 20267 min read

How to Build a Data Dashboard

A dashboard is a few numbers someone acts on, refreshed on a rhythm they trust. Start from the decisions, then the sources, then the charts.

Startbase Team
Editorial ink illustration of a brass instrument panel with three round gauges on a wooden desk, the middle gauge needle in ember orange

Key takeaways

  • Start from the decisions the dashboard should drive, then choose at most five to seven headline numbers. Everything else goes one click deeper.
  • Copy source data into your own database on a schedule instead of calling third-party APIs every time someone opens the page.
  • Store daily snapshots, not just current values. Trends need history, and most APIs will not give it back to you later.
  • Show when each number was last refreshed. A dashboard nobody trusts is worse than no dashboard.

To build a data dashboard, decide which handful of numbers someone needs to act on, copy the data behind them from each source into your own database on a schedule, store a snapshot every day so you have history, and draw each number as the simplest chart that answers its question. The charting is the easy part. The work that makes a dashboard useful is choosing the numbers, keeping the data fresh and making people trust what they see.

Start from decisions, not data

The classic failure is a wall of 30 charts because the data was available. Nobody reads it after the first week. Before any chart, write down who opens the dashboard, how often, and what they do differently depending on what they see. A shop owner checks yesterday's orders and decides whether to restock. A support lead checks open tickets and decides whether to pull someone off other work. A founder checks signups and activation weekly and decides where to spend the next sprint.

Each decision usually maps to one headline number plus one comparison: today versus yesterday, this week versus last week, actual versus target. Five to seven of those fit on a phone screen without scrolling. If you have more, you have two dashboards for two audiences.

The data model behind a dashboard

A dashboard app stores less than you think, but it needs to store it in the right shape:

  • sources: one row per connection (Stripe, a Google Sheet, a CSV upload, your own app's database), with a name, type, status and the time of the last successful sync and the last error.
  • raw records: the copied data itself, one table per kind of thing (orders, signups, tickets), keyed by the source's own id so a re-sync updates rows instead of duplicating them.
  • metric_snapshots: date, metric key, value and an optional dimension (channel, region, plan). One row per metric per day is enough for most small businesses.
  • metrics: the definitions: key, label, unit (count, currency, percent), whether up is good, and an optional target.
  • sync_runs: when each sync started and finished, how many rows it touched and the error if it failed.

The snapshot table is the one people skip and regret. Many APIs only tell you the current state: how many subscribers you have now, how many items are in stock now. If you do not write that number down every day, you can never chart how it changed. Start the snapshots on day one, even before the charts look good.

Getting data in: three source shapes

Your own app's database

If the dashboard sits on top of an app you already built, the data is already in Postgres. The dashboard is then mostly SQL: a view or function per metric that groups by day. This is the fastest kind of dashboard to build and the most accurate, because there is no copy to drift out of date.

Third-party APIs

For Stripe, an analytics service, a help desk or a CRM, a server function calls the API with a key and writes the results into your tables. The key must never reach the browser. On Startbase Cloud, keys go in Secrets, which only edge functions can read, and the sync itself runs as an edge function. Ask for incremental syncs where the API allows it (fetch only what changed since the last successful run) so you stay inside rate limits.

Spreadsheets and exports

Plenty of business data lives in spreadsheets and monthly exports. A CSV upload screen inside your dashboard covers this well: map columns once, save the mapping, and let someone drop next month's file in. For one-off loads while you build, the Backend tab's table browser imports CSV files up to 5 MB and maps headers to columns by name, so you can seed a table and start charting before the upload screen exists.

Refresh: pick a rhythm and show it

Real-time dashboards are rarely worth their cost. Most business numbers are read once or twice a day, so an hourly or nightly sync is honest and cheap. On Startbase Cloud, scheduled jobs run inside your database on pg_cron, and you can describe them in plain words: every hour, call the Stripe sync; every night at 1am, write yesterday's snapshot for each metric. Schedules are shown in UTC, which matters when your "yesterday" ends at midnight local time.

  • Stamp every number with its last refresh time ("updated 07:00"). It answers the first question anyone asks when a number looks wrong.
  • Add a Refresh now button for admins that triggers the same sync on demand, with a short cooldown so it is not hammered.
  • Fail loudly. If a sync fails, show a small warning on the affected cards and keep the last good values, rather than silently showing zeros.
  • Go live only where it matters. A live order counter on launch day or a support queue can use realtime updates; the monthly revenue chart does not need them.

Choosing the chart for each number

Each chart answers one question. Match the shape to the question and resist decoration:

  • How much right now? A big number card with the comparison underneath (up 12 percent versus last week) and a tiny sparkline.
  • How is it trending? A line chart over days or weeks. Start the y-axis at zero for counts and money, or the slope lies.
  • How does it split? A horizontal bar chart sorted by size. Avoid pie charts beyond three slices; people cannot compare angles.
  • Are we on target? A progress bar against the target, colored only when it is off track.
  • What needs attention? A short table of the five worst items (lowest stock, oldest tickets) with a link to each.

Use color for meaning, not variety: one neutral color for most series, one accent for the thing you want noticed, red only for problems. Format numbers the way people say them (12.4k, $3,210, 4.2%) and always show the unit.

Who sees what

A dashboard almost always shows sensitive numbers, so it needs sign-in from the start. A simple rule covers most small teams: everyone with an account sees the dashboard, and only admins manage sources and metric definitions. If different clients or stores should only see their own figures, every raw record and snapshot needs an owner column, and row level security policies filter by it. Startbase Cloud turns on row level security for every new table, which is the right default here; test it by signing in as a second user before you share the link.

The screens of a first version

  1. 01Overview: five to seven number cards with comparisons, and one trend chart for the most important metric.
  2. 02Metric detail: the full history of one number, a date range picker and a breakdown by its main dimension.
  3. 03Sources: each connection with its status, last sync time, last error and a Refresh now button.
  4. 04Upload: drop a CSV, confirm the column mapping, see how many rows were added.
  5. 05Settings: metric definitions and targets, and who has access.

A brief you can paste

Build a sales dashboard web app for a small online shop. Sign-in required; admins manage sources. Data comes from two places: Stripe (sync charges and refunds every hour with an edge function, key stored as a secret) and a monthly CSV export of ad spend that admins upload. Every night at 01:00 UTC, write a snapshot per metric for the previous day. Overview shows six cards: revenue yesterday, orders yesterday, average order value, refunds this week, ad spend this month and revenue divided by ad spend, each with a comparison to the previous period and its last refresh time. Add a metric detail page with a line chart and a date range picker, and a Sources page showing sync status and errors. If a sync fails, keep the last values and show a warning on the card.

Start in Plan mode if your sources are complicated: it is a good place to agree on the table design before anything is built. Our internal tools guide covers the broader family of tools a dashboard usually grows into. To decide which numbers belong on it, read app metrics that matter, and scheduled jobs explained covers the nightly refresh.

What to leave out of version one

  • A drag-and-drop chart builder. Building a configurable BI tool is a product of its own. Hard-code the metrics that matter; add one when someone asks for it twice.
  • Realtime everywhere. Refresh on a schedule and show the time.
  • Every source at once. Connect the one source that answers the biggest decision, prove people open the dashboard, then add the second.
  • Forecasting and anomaly alerts. Useful later, misleading with three weeks of history.
  • Scheduled email reports. A good second-version feature once the numbers are trusted.

Tip

Before launch, pick three numbers and check them by hand against the source (the Stripe dashboard, the original spreadsheet). One wrong number on day one costs more trust than ten missing charts.

Frequently asked questions

What is the best way to build a dashboard without coding?

Describe the decisions it should support, the sources and the refresh schedule to an AI app builder, and let it build the sync, the database and the charts. Tools like spreadsheets and BI products also work when your data already lives in one place and you do not need a custom app around it.

Should a dashboard query APIs live or store a copy of the data?

Store a copy. Live calls are slow, hit rate limits and cannot show history for values the API only reports as current. Sync on a schedule into your own database and chart from there.

How often should dashboard data refresh?

As often as someone would act on a change. For most business metrics that is hourly or nightly. Live updates are worth it only for operational screens like an order queue or a support backlog.

Which chart types should a dashboard use?

Big number cards with a comparison for current values, line charts for trends, sorted horizontal bars for breakdowns and short tables for items needing attention. Avoid pie charts with many slices and 3D charts.

On this page

  • Start from decisions, not data
  • The data model behind a dashboard
  • Getting data in: three source shapes
  • Refresh: pick a rhythm and show it
  • Choosing the chart for each number
  • Who sees what
  • The screens of a first version
  • A brief you can paste
  • What to leave out of version one

Keep reading

More in Guides
Editorial ink illustration of a kitchen scale with an apple on its pan beside a notepad and a spoon, the apple in ember orange
GuidesNovember 22, 2026

How to Build a Calorie Tracker App

Calorie tracking fails when logging is slow or the numbers are wrong. Get reliable food data, make repeat meals one tap, and be honest that every number is an estimate.

6 min read
Editorial ink illustration of two tin-can telephones joined by a string across a garden fence, the knot in the string in ember orange
GuidesNovember 22, 2026

How to Build a Chat App

Chat looks simple and hides four hard problems: delivering messages live, knowing who is online, tracking who has read what, and keeping strangers from abusing it.

6 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.