What you will be able to do
- Name the question a stakeholder is asking (trend, share of a whole, single KPI, relationship, distribution) and pick the AI/BI dashboard visualization that answers it
- Rule out tempting but wrong types such as a pie for time series or a funnel for a monthly trend
- Decide when a cross-tab, retention or flow question calls for a pivot table, a cohort chart or a sankey diagram
- Choose between a choropleth, point map and path map from what the question asks about places
Key concept
Question-first chart selection — Name the question the viewer is asking before you pick a chart. How is this changing, what share does each part hold, what is the number now, how do two measures relate, how are values spread? Each question has a small set of visualization types built to answer it, and a chart chosen for another question hides the insight even when the data is correct.
1.Trends over time and shares of a whole
AI/BI dashboards offer many visualization types: bar, line, area, scatter, pie, combo, funnel, tables, box plots, histograms, heatmaps, maps and counters. Most of them can draw the same dataset, so the data alone does not tell you which to use. Start with the question the widget has to answer, then pick the type built for that question. Two questions come up more than any others: how a measure is changing, and how a total splits into parts.
A trend calls for a line chart. Line visualizations present the change in one or more metrics over time. Plot a date field on a continuous x-axis and the measure on the y-axis, and the direction is easy to read at a glance: seasonal rises, dips and plateaus across a year of daily revenue all show up. The Line shape control sets how points connect. Linear (straight segments) is the default, Smooth draws a curve, and Step draws horizontal and vertical segments, which suits values that change in discrete jumps.
Area and bar charts also show change over time, but each adds something. An area chart combines line and bar to show how several groups' values change over time, and with Stack or 100% Stack layout it shows each group's contribution to a running total. A bar chart represents change over time or across categories and also shows proportionality. Its Layout can be Stack, 100% Stack or Group, so bars work well when the categories are discrete and you want them side by side. In notebooks and the SQL editor, a combo chart puts a bar series and a line series on one chart to show change over time with proportionality.
A share of a whole calls for a pie chart. Pie visualizations show proportionality between metrics, such as the share of quarterly revenue from four pricing tiers. The angle encodes the summed measure and the color encodes the category. Pie charts are not meant for time series: a slice per day or month turns a trend into dozens of thin wedges that nobody can compare. If you need to see how the share itself shifts from quarter to quarter, a bar or area chart with 100% Stack layout keeps the time axis.
Funnel and waterfall charts can look like they fit a declining trend, but they answer a different question: what happens across a sequence of stages. A funnel analyzes the change in a metric at different stages, configured with a step column and a value column, such as order count by order status. A waterfall shows the cumulative effect of sequential positive and negative values, which is why it is used for profit-and-loss views. Twelve calendar months are not stages that a metric moves through, so neither chart is the right choice for a seasonal trend.
| Question the viewer asks | Visualization | Why it fits |
|---|---|---|
| How did one metric move over the year? | Line | Presents change in one or more metrics over time |
| How did each group contribute to the total over time? | Area (Stack or 100% Stack) | Shows how groups' values change over a second variable, typically time |
| How do categories compare, or how do values change month by month? | Bar (Stack, 100% Stack or Group) | Represents change over time or across categories and shows proportionality |
| What share of the total does each category hold? | Pie | Shows proportionality between metrics; not meant for time series |
| How does a metric change across ordered stages? | Funnel | Analyzes the change in a metric at different stages |
A pie chart shows one part-to-whole split and is not meant for time series, so it cannot show change across years. Use an area or bar chart with the order date on the x-axis, priority as the color, and 100% Stack layout. Each year then shows the shares, and the time axis shows how they shift.
Checkpoint 1 of 7· Match them up
Match each dashboard question to the visualization type built to answer it
Tap a term, then the definition that fits it.
A line chart shows how a metric changes over time. An area chart with 100% Stack shows how each group's share changes over time. A pie chart shows one split of a total and is not meant for time series. A funnel shows how a metric changes across ordered stages.
“Pie visualizations show proportionality between metrics. They are not meant for conveying time series data.”Source: docs.databricks.com
Checkpoint 2 of 7· Exam question
A data analyst builds an AI/BI Dashboard widget that plots a single metric, daily gross merchandise revenue, across every day of the past 12 months, and stakeholders want to spot seasonal upward and downward trends at a glance. Which visualization type should the analyst choose for this widget?
Correct answer: A — Configure a line chart, since it presents the change in a single metric over a continuous time axis and makes seasonal trend direction easy to read.
- A. A line visualization is built to present how one or more metrics change over a continuous axis, which is exactly what a twelve-month daily revenue series needs. It makes rising and falling seasonal trends visually obvious because consecutive days are connected into a single traceable path.
- B. A pie chart shows proportionality between a small set of categories, not change over a continuous axis, so it is explicitly not meant for time series data. Turning 365 days into pie slices would produce an unreadable widget rather than a trend view.
- C. A funnel chart is designed to analyze how a metric changes across a small number of defined sequential stages, such as steps in a signup process, not a daily time series. There are no discrete stages here, only a continuous run of calendar days.
- D. A choropleth map colors geographic localities by an aggregated value and is meant for regional comparisons, not for tracking a single metric across time. Recasting the request as a country-by-country comparison would drop the day-by-day trend the stakeholders asked for.
2.Single values, relationships and distributions
A single KPI calls for a counter. Counters display a single value prominently, with an option to compare it against an offset value such as the prior day. You set the Value and Comparison columns, and you can add a date column and aggregation to draw a background sparkline. Conditional formatting and text style live in the Value configuration. Other chart types show the same number badly. A bar chart would plot every prior day as its own bar, a pivot table would list counts across rows, and a heatmap would shade a grid. Each of these buries today's active-user count in values the viewer did not ask about.
A relationship between two measures calls for a scatter chart. Scatter visualizations are commonly used to show the relationship between two numerical variables, such as quantity against extended price. Color can encode a third dimension, for example ship mode, to show how the relationship differs across groups. Bubble charts are scatter charts where the size of each marker reflects another metric. In AI/BI dashboards there is no separate bubble type to select: you choose Scatter and set a field under Size, such as minutes in the taxi.
The spread of values calls for a distribution chart, and there are three. A histogram plots how often values occur, so it shows whether values cluster in a few ranges or spread out. It is drawn as bars, and you control the number of bins (for example, 20 bins over order total price). A box chart summarizes a numerical distribution through its quartiles, optionally grouped by category, so it is the one to use when you want to compare value ranges, spread and skew across categories side by side. A heatmap uses color intensity on a grid of two dimensions. One example counts orders by priority on the x-axis and ship mode on the y-axis, with darker cells for higher counts. Heatmaps render up to 64K rows or 10MB.
Checkpoint 3 of 7· Check yourself
An analyst needs one widget that compares the range, spread and skew of line-item extended price across each return flag value, side by side. Which visualization fits best?
A box chart summarizes a numerical distribution through its quartiles and can group it by category, so it compares range, spread and skew across return flags side by side. A histogram shows how often values occur for one distribution. A heatmap shades a grid of two dimensions, and a scatter chart shows how two measures relate.
“you can quickly compare the value ranges across categories and visualize the locality, spread, and skewness groups of the values”Source: docs.databricks.com
Checkpoint 4 of 7· Exam question
A dashboard widget needs to show what percentage of total quarterly subscription revenue came from each of four pricing tiers (Basic, Standard, Premium, Enterprise), with the emphasis on the part-to-whole split rather than any change over time. Which visualization type best fits this widget?
Correct answer: A — Configure a pie chart, since it shows proportionality between a small number of categories and clearly conveys how each tier's slice compares to the whole.
- A. A pie visualization exists specifically to show proportionality between metrics, and four pricing tiers is a small enough set of slices for viewers to compare shares of the whole at a glance. This matches the stated goal of a part-to-whole split rather than a trend.
- B. A line chart presents change over a continuous axis such as time, but the request explicitly says the emphasis is the split among tiers, not a trend. Forcing four static quarterly shares into a line would misrepresent them as evolving values.
- C. A scatter visualization is built to reveal the relationship between two numerical variables, such as spend versus revenue, not to show how one total divides among four named categories. There is no second continuous variable being compared here.
- D. A box chart summarizes the distribution, quartiles, and outliers of numerical data within categories, which answers a spread question, not a part-to-whole share question. It would not communicate what percentage of the total each tier represents.
Checkpoint 5 of 7· Exam question
An operations dashboard needs a widget that prominently displays the current count of active daily users as a single large number, with a small comparison against the prior day's count. Which widget type should the analyst use?
Correct answer: A — Configure a counter visualization, since it displays a single value prominently and supports comparing that value against an offset such as the prior period.
- A. A counter visualization is purpose-built to display one value prominently and includes an offset comparison option, which is exactly the current-count-versus-prior-day requirement described. It avoids the clutter of a full chart when only one headline number matters.
- B. A pivot table aggregates results into a multi-dimensional tabular display meant for scanning many rows and columns, which is more detail than a single prominent headline figure needs. It would bury the one number the widget is supposed to highlight.
- C. A bar chart represents change across categories or time and would require plotting a full history of prior days as separate bars, rather than surfacing one large current value with a simple offset comparison.
- D. A heatmap encodes numerical values with color intensity across a grid, which suits comparing many combinations at once, not prominently surfacing a single current metric with one comparison point.
Sources1
3.Cross-tabs, retention and flows
Some questions have no single measure to plot. They ask about combinations of two dimensions, groups followed over time, or movement from one state to another. Each has its own visualization.
A cross-tab question calls for a pivot table. A pivot visualization aggregates query records into a tabular display, much like PIVOT or GROUP BY in SQL. Unlike a regular table, it puts dimension fields on rows or columns to build a cross-tabulated view. You drag fields into Rows, Columns and Values. For example, return flag goes on rows, ship mode on columns, and the sum of quantity in the cells, with Display totals turned on for both dimensions. Pick a pivot when the viewer needs to read exact values at each row-column intersection. If the viewer needs to see the pattern rather than the numbers, a heatmap shows it faster. Pivot tables render up to 1000 columns by 1000 rows, and a Default expand level can start deeper hierarchy levels collapsed.
A retention question calls for a cohort chart, and in AI/BI dashboards you build it as a pivot. A cohort chart groups users by a shared characteristic, such as sign-up date or first order date, and tracks their activity in the periods that follow. In the documented example, Rows holds the cohort (transformed to yearly), Columns holds the active period, and the cell holds the retention value with Style set to Color Scale, so darker cells mean higher retention. The query has to supply the cohort, the period and the retention figure. The pivot only arranges and colors them. Notebooks and the SQL editor do have a dedicated cohort visualization, which aggregates only over dates and expects every other aggregation to be done in the query.
A flow question calls for a sankey diagram. A sankey diagram shows the flow from one set of values to another, such as taxi trips moving from pickup borough to dropoff borough to fare band. You list the stage columns in order and supply a value. Sankey visualizations do no aggregation of their own, so the query groups by the stages and computes the value itself, often with a LIMIT so the diagram stays readable.
SELECT pickup_zip as stage1, dropoff_zip as stage2, sum(fare_amount) as value
FROM samples.nyctaxi.trips
GROUP BY 1, 2
ORDER BY 3 DESC
LIMIT 10| Question | Visualization | How it is configured |
|---|---|---|
| What is the total for each combination of two dimensions? | Pivot | Rows, Columns and Values, with optional Display totals |
| How many customers from each cohort are still active in later periods? | Pivot used as a cohort chart | Rows: Cohort; Columns: Active Period; Cell: Retention with Style: Color Scale |
| Where does volume go from one stage to the next? | Sankey | Stages listed in order plus a value; aggregation done in the query |
Checkpoint 6 of 7· Check yourself
In an AI/BI dashboard, a product manager wants to see how many customers from each first-order year are still placing orders in each later year, with stronger retention showing as darker cells. The dataset already returns cohort, active period and retention columns. How do you build this widget?
In AI/BI dashboards you build a cohort chart as a pivot over retention data, and a color scale on the cells shows the retention rate. The dedicated Cohort type with Date (bucket) and Stage settings exists only in notebooks and the SQL editor. Funnel and Sankey answer stage and flow questions, not retention by cohort.
“To create a cohort chart, use a pivot visualization with retention data.”Source: docs.databricks.com
4.Choosing a map type by the question
Maps are configured differently from other charts, and that setup is covered in Choropleth and marker maps. For choosing between them, ask whether the viewer is comparing areas, looking for places, or following movement. The answer tells you which map type to use and what the query has to return.
Comparing regions calls for a choropleth. It colors countries, states or counties by an aggregated value, such as total sales per state, so the viewer can see which regions lead. The query returns region names, or a GEOMETRY or GEOGRAPHY column. Showing where things are calls for a point map. It places a marker at each pair of coordinates, so the query must include latitude and longitude, or a geometry column. Store sites or pickup locations belong here, because a choropleth would merge them into one colored state. Showing movement calls for a path map. It draws lines from a line geometry or by connecting a sequence of points in order. Routes, transit lines, rivers and GPS tracks are path-map questions.
| Question | Map type | Query must return |
|---|---|---|
| Which regions have the highest value? | Choropleth | Region names, or a GEOMETRY or GEOGRAPHY column |
| Where are the individual locations? | Point map | Latitude and longitude pairs, or a GEOMETRY or GEOGRAPHY column |
| What path did something follow? | Path map | A GEOMETRY or GEOGRAPHY line column, or a sequence of points to connect |
Checkpoint 7 of 7· Match them up
A retail operations dashboard needs three geographic widgets. Pair each map type with the request it should answer.
Tap a term, then the definition that fits it.
A choropleth colors whole regions by an aggregate value, so it suits comparing states. A point map places a marker at each coordinate pair, so individual stores stay separate instead of merging into one colored state. A path map draws lines from a line geometry or a sequence of points, which is what a route needs.
“Choropleth: Colors geographic localities, such as countries or states, according to the aggregate values of each key column.”Source: docs.databricks.com
Sources5
Sources
(5)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.
“Line visualizations present the change in one or more metrics over time.”
↩︎ Trends over time and shares of a whole“Linear: Connects points with straight segments. This is the default.”
↩︎ Trends over time and shares of a whole“to show how one or more groups' numeric values change over the progression of a second variable”
↩︎ Trends over time and shares of a whole“Bar charts represent the change in metrics over time or across categories and show proportionality, similar to a pie visualization.”
↩︎ Trends over time and shares of a whole“In the Layout section, choose Stack or 100% Stack, or Group.”
↩︎ Trends over time and shares of a whole“Pie visualizations show proportionality between metrics. They are not meant for conveying time series data.”
↩︎ Trends over time and shares of a whole“Waterfall charts display the cumulative effect of sequential positive and negative values”
↩︎ Trends over time and shares of a whole“Counters display a single value prominently, with an option to compare them against an offset value.”
↩︎ Single values, relationships and distributions“Optionally, choose a date column and aggregation to show a sparkline in the chart.”
↩︎ Single values, relationships and distributions“Scatter visualizations are commonly used to show the relationship between two numerical variables.”
↩︎ Single values, relationships and distributions“In the Size setting, select the metric you want represented by the size of the markers.”
↩︎ Single values, relationships and distributions“A histogram is displayed as a bar chart in which you control the number of distinct bars (also called bins).”
↩︎ Single values, relationships and distributions“The box chart visualization shows the distribution summary of numerical data, optionally grouped by category.”
↩︎ Single values, relationships and distributions“Heatmaps can display up to 64K rows or 10MB.”
↩︎ Single values, relationships and distributions“A pivot visualization aggregates records from a query result into a tabular display.”
↩︎ Cross-tabs, retention and flows“To create a cohort chart, use a pivot visualization with retention data.”
↩︎ Cross-tabs, retention and flows“The color scale indicates retention rates, with darker colors showing higher retention.”
↩︎ Cross-tabs, retention and flows“A sankey diagram visualizes the flow from one set of values to another.”
↩︎ Cross-tabs, retention and flows“Line visualizations present the change in one or more metrics over time.”
↩︎ Key concept“Pie visualizations show proportionality between metrics. They are not meant for conveying time series data.”
↩︎ Exam trap 1“Counters display a single value prominently, with an option to compare them against an offset value.”
↩︎ Exam trap 2“Bubble charts are scatter charts where the size of each point marker reflects a relevant metric.”
↩︎ Exam trap 3“To create a cohort chart, use a pivot visualization with retention data.”
↩︎ Exam trap 4“Markers are positioned using latitude and longitude coordinates, which must be included as part of the result set for this chart type.”
↩︎ Exam trap 5“To make a bubble chart, select Scatter as your visualization type.”
↩︎ Prediction“you can quickly compare the value ranges across categories and visualize the locality, spread, and skewness groups of the values”
↩︎ Checkpoint - 2.
“Combo charts combine line and bar charts to present the changes over time with proportionality.”
↩︎ Trends over time and shares of a whole“The funnel visualization helps analyze the change in a metric at different stages.”
↩︎ Trends over time and shares of a whole“The cohort visualization only aggregates over dates (it allows for monthly aggregations).”
↩︎ Cross-tabs, retention and flows“Sankey visualizations do not do any aggregations of data within the result set.”
↩︎ Cross-tabs, retention and flows - 3.
“Bar, line, area, scatter, pie, combo, funnel, and more”
↩︎ Trends over time and shares of a whole - 4.
“pivot tables let you add dimension fields to either rows or columns to create cross-tabulated views.”
↩︎ Cross-tabs, retention and flows“Pivot tables support rendering up to 1000 columns x 1000 rows.”
↩︎ Cross-tabs, retention and flows - 5.
“The query must return geographic locations by name (see Region lookup tables for supported names) or as a GEOMETRY or GEOGRAPHY column.”
↩︎ Choosing a map type by the question“Point map: Places a marker at a set of coordinates on the map.”
↩︎ Choosing a map type by the question“Use it for routes, transit lines, rivers, borders, or point-by-point trajectories such as GPS tracks.”
↩︎ Choosing a map type by the question“Choropleth: Colors geographic localities, such as countries or states, according to the aggregate values of each key column.”
↩︎ Checkpoint