Sub topic 14
Designing a Dashboard People Can Trust
This chapter assumes you know basic SQL, blockchain terms, Dune’s decoded and curated tables, and DefiLlama’s main metrics. The goal is not to make a dashboard look busy. The goal is to make each number understandable, reproducible, and appropriate for the question being asked.
Start with a precise question
A trustworthy dashboard begins with a decision or question:
- How much spot DEX volume occurred on Ethereum each day?
- Which protocols had the largest TVL this week?
- Did stablecoin transfers increase after a protocol launch?
Write the metric definition before building a chart. Specify the chain, time zone, date range, asset scope, and unit. “Volume” might mean swap notional, while “TVL” might include only assets that a data provider can price and attribute to a protocol.
A chart title should expose important choices. “Ethereum DEX volume, USD, daily” is more useful than “Volume.”
Give every number a traceable source
A reader should be able to move from a chart to the query or API response that produced it. Record:
- Source platform and table, such as Dune’s
dex.trades. - Query version or link.
- Filters, including chain, protocol, and date range.
- Price source and token-decimal conversion.
- Refresh time and expected data delay.
- Metric limitations and exclusions.
Use one dashboard description for shared assumptions. Add a short note to each chart when its logic differs. A Dune chart based on curated trades and a DefiLlama chart based on protocol adapters may use similar labels but still measure different sets of activity.
Match charts to questions
Choose a visualization that preserves the important comparison.
| Question | Useful chart | Important annotation |
|---|---|---|
| How did daily volume change? | Line chart | Date range, currency, and timezone |
| Which protocols are largest now? | Sorted bar chart | Snapshot time and TVL definition |
| How is TVL distributed? | Stacked bar or table | Whether categories overlap |
| Did two sources agree? | Line chart with separate series | Source and methodology for each series |
Avoid combining metrics with incompatible scales. A line showing USD volume and a line showing transaction count can share a chart only when the axes and units are obvious. Otherwise, use separate panels.
Prefer a table for exact values and a chart for trends. Round displayed values for readability, but make the unrounded result available through a detail view or downloadable query result.
Make uncertainty visible
Blockchains produce data continuously, but indexing and labeling are not instantaneous. Mark incomplete periods. A current-day value may be lower simply because the day has not ended. DefiLlama’s TVL can also change because asset prices changed, not because deposits changed.
Use explicit comparison rules:
- Compare the same chain and date boundaries.
- Compare complete days with complete days.
- Use the same currency and price convention where possible.
- State whether bridges, aggregators, and related protocols are included.
- Explain whether a metric is a sum, snapshot, or rolling total.
When Dune and DefiLlama disagree, do not silently select the larger number. Show both values and investigate table coverage, protocol attribution, token prices, decimals, and double counting.
Add validation before publishing
Check a new dashboard against known facts:
- Does the date filter exclude future or incomplete data?
- Are token amounts divided by the correct decimal factor?
- Are duplicate event rows or multi-hop swaps counted twice?
- Do daily totals reconcile with a trusted source within an explained boundary?
- Does changing a chain parameter alter every relevant query and chart?
- Are empty results distinguishable from zero activity?
Keep a small validation query or spreadsheet with expected ranges. Re-run it after changing table names, joins, price logic, or protocol labels. Dashboard reliability depends more on these checks than on visual polish.
Exercise
A Dune chart reports higher Ethereum DEX volume than DefiLlama for the same week. What should you check first?
Show answer
Confirm that both metrics use the same date boundaries, currency, chain scope, protocol coverage, and definition of volume. Then inspect token prices, multi-hop trade handling, and whether either source includes aggregators or incomplete data.