CertSafari
    Databricks Certified Data Analyst Associate· Lessons

    Domain 6 · Lesson 30/39

    Choosing the right visualization type for an insight

    Identify the effective visualization type to communicate insights clearly.

    17 min read
    2.29% of exam
    5 sources
    Published 22 Oct 2026
    Docs as of 30 Sep 2026

    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.

    Trend and part-to-whole questions mapped to dashboard visualization types
    Question the viewer asksVisualizationWhy it fits
    How did one metric move over the year?LinePresents 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?PieShows proportionality between metrics; not meant for time series
    How does a metric change across ordered stages?FunnelAnalyzes the change in a metric at different stages

    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.

    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?

    Sources123

    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?

    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?

    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?

    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.

    A two-stage sankey dataset: the query does the grouping and summing, and the visualization only draws the flowssql
    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
    Cross-tab, retention and flow questions and the visualization that answers each
    QuestionVisualizationHow it is configured
    What is the total for each combination of two dimensions?PivotRows, Columns and Values, with optional Display totals
    How many customers from each cohort are still active in later periods?Pivot used as a cohort chartRows: Cohort; Columns: Active Period; Cell: Retention with Style: Color Scale
    Where does volume go from one stage to the next?SankeyStages 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?

    Sources142

    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.

    Map type by the geographic question and the data the query must return
    QuestionMap typeQuery must return
    Which regions have the highest value?ChoroplethRegion names, or a GEOMETRY or GEOGRAPHY column
    Where are the individual locations?Point mapLatitude and longitude pairs, or a GEOMETRY or GEOGRAPHY column
    What path did something follow?Path mapA 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.

    Sources5

    Sources

    (5)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 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. 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. 3.
      “Bar, line, area, scatter, pie, combo, funnel, and more”
      ↩︎ Trends over time and shares of a whole
    4. 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. 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

    Spotted a mistake, or was something unclear? Tell us.