Why this matters
Tooltips and details-on-demand let users explore without cluttering the dashboard. As a BI Developer, you use them to add context, show definitions, reveal contributors, or let users drill into records only when needed. Real tasks include: clarifying how a KPI is calculated, comparing to prior period within a hover, showing top contributors for a selected bar, and providing a compact record view when a user clicks.
Concept explained simply
Two related patterns help you balance clarity and depth:
- Tooltip: a small contextual panel on hover or focus that explains the point/mark (e.g., exact value, change vs. target, definition).
- Details-on-demand (DoD): a deliberate interaction (click/tap or a help icon) that opens a larger panel, table, or drill-through with deeper information.
Mental model: Progressive disclosure
Think in three layers:
- Overview: minimal visuals to answer the core question.
- Zoom/filter: focus on a slice that matters.
- Details-on-demand: load specifics only when asked.
Good tooltips do the “last mile” of context; DoD surfaces the “why” or “who” behind the number.
Design rules of thumb
- Show at most 3–6 lines in a tooltip. Prioritize the user’s next question.
- Include a micro-comparison (e.g., vs. previous period or target) when it reduces clicks.
- Use clear labels, concise units, and color that matches the chart legend.
- Avoid raw IDs or long text in tooltips; move those to DoD.
- For DoD, default to a compact table with relevant filters applied, plus a short title that mirrors the selection.
Worked examples
Example 1: KPI card tooltip with definition
- Goal: Explain how “Conversion Rate” is calculated and whether it’s on track.
- Tooltip design:
- Conversion Rate: 3.4% (−0.2 pp vs last week)
- Numerator: 1,470 Purchases
- Denominator: 43,200 Sessions
- Definition: Purchases / Sessions
- DoD: On click, open a panel with daily trend, segmentation by channel, and filter pills applied from the page.
Example 2: Time-series point tooltip with anomaly context
- Goal: At a selected date, show exact value and context.
- Tooltip design:
- 2024-05-14 — Revenue: $128,400
- Vs. previous day: +$9,200 (+7.7%)
- 7-day avg: $119,300
- DoD: Click to open a breakdown table: top 5 products and regions for that day.
Example 3: Heatmap cell tooltip with row/column context
- Goal: Show sales by product x region with context.
- Tooltip design:
- Product: Alpha
- Region: West
- Sales: $842k (Rank in region: 2/12)
- Region total: $3.2M | Product total: $2.9M
- DoD: Click to open a side panel listing monthly trend for Product Alpha in West, plus a linkable filter state title (no inline links).
Example 4: Bar chart tooltip with contributors
- Goal: On a category bar, show exact value and top contributors.
- Tooltip design:
- Category: Accessories — $510k
- Top customers: C1 $90k, C2 $76k, C3 $61k
- MoM: +12%
- DoD: Click opens a pre-filtered table of all customers in Accessories with sortable columns.
Patterns and when to use
Hover tooltip
Use for quick lookups on dense charts. Keep it short, stable in layout, and avoid expensive queries.
Focus/keyboard tooltip
Ensure tooltips also appear on keyboard focus for accessibility. Use a clear focus style and dismiss with Escape.
Click-to-expand DoD
Use when you need tables, longer text, or multiple comparisons. Keep the panel narrow on desktop and full-screen on mobile.
Drill-through page
For heavy detail, open a dedicated view filtered by the current selection. Persist the context in the title, e.g., “Orders — Region: West, Month: May”.
Accessibility and performance
- Keyboard: All interactive marks must be focusable; show the same info on focus as on hover. Provide Escape to close.
- Touch: Prefer tap to toggle the tooltip/panel. Avoid hover-only behaviors.
- Color/contrast: Ensure tooltip text contrast ≥ 4.5:1; don’t rely on color alone to encode meaning.
- Latency: Pre-aggregate small summaries for tooltips. Avoid running large joins on hover. Cache common comparisons (e.g., previous period).
Design checklist
- Does the tooltip answer the next obvious question in ≤ 6 lines?
- Are labels human-friendly and consistent with the chart?
- Is there a micro-comparison (vs. target/previous) when useful?
- Is sensitive or verbose info moved to DoD instead of the tooltip?
- Is the interaction accessible for keyboard and touch?
- Do tooltips remain stable (no jumping layout) as you move between points?
Common mistakes and self-check
- Overloading tooltips with entire tables. Fix: keep tooltip succinct; move lists to DoD.
- Missing context (e.g., units or time range). Fix: add units and period in labels.
- Inconsistent logic across visuals. Fix: standardize definitions and comparison windows.
- Hover-only interactions. Fix: support focus and click; add DoD for touch.
- Slow hover queries. Fix: precompute or cache; if heavy, shift to DoD on click.
Exercises
Complete the exercises below. The Quick Test is available to everyone; log in to save your progress.
Exercise 1 — Design a time-series tooltip (ID: ex1)
You have a monthly revenue line chart for the last 12 months. The product manager wants the tooltip to show exact value, prior month comparison, and a brief note if the point is a local minimum or maximum. Define the tooltip content and rules in a structured list.
Exercise 2 — Plan a details-on-demand panel (ID: ex2)
Users click a category bar to see contributing products. Describe the DoD panel: title, filters inherited, columns to show, default sort, and a rule that limits to top 20 by revenue.
- Checklist for your solutions:
- Max 6 lines for the tooltip; clear labels and units.
- Explicit rule for prior period calculation (handle first month edge case).
- DoD shows only the most useful columns; sorted for decision-making.
- Title mirrors filter context so users know where they are.
Practical projects
- Add progressive tooltips to a KPI card, a time-series, and a bar chart in an existing dashboard. Measure hover dwell time and bounce rate before/after to confirm clarity.
- Build a universal DoD side panel component that accepts current filters and a selected dimension, and renders a compact table with top-N and pagination.
- Create a tooltip style guide: label casing, units, comparison window, max lines, and accessibility rules. Apply it across three visuals.
Who this is for
- BI Developers and Analysts who build dashboards for business users.
- Anyone aiming to reduce clutter while preserving depth in analytics.
Prerequisites
- Comfort with filters, aggregations, and basic chart types.
- Understanding of your organization’s metric definitions.
Learning path
- Design clean chart summaries (minimal labels, clear titles).
- Add focused tooltips with micro-comparisons.
- Implement click/tap details-on-demand panels or drill-through views.
- Harden for accessibility and mobile.
- Measure performance and iterate.
Next steps
- Refine one dashboard using the checklist above.
- Take the Quick Test below to validate your understanding. Note: everyone can take it; log in to save results.
- Share your tooltip/DoD style guide with your team for consistency.
Mini challenge
Pick a dashboard with at least three visuals. For each, remove one on-chart label and move that context into a tooltip. Add one DoD panel that reveals contributors. Ask two users to try it; if they solve their task with fewer clicks, you’ve improved the design.