Understand how to arrange dashboard elements horizontally and vertically for clear data presentation.
Direction (horizontal, vertical) in Figma - Dashboard Guide
| Month | Sales | Profit |
|---|---|---|
| January | 100 | 30 |
| February | 150 | 50 |
| March | 200 | 70 |
| April | 180 | 60 |
| May | 220 | 80 |
- KPI Card - Total Sales: Shows total sales for all months.
Formula:SUM(Sales) = 100 + 150 + 200 + 180 + 220 = 850 - KPI Card - Total Profit: Shows total profit for all months.
Formula:SUM(Profit) = 30 + 50 + 70 + 60 + 80 = 290 - Bar Chart - Sales by Month (Horizontal): Bars run horizontally showing sales values for each month.
- Column Chart - Profit by Month (Vertical): Columns run vertically showing profit values for each month.
- Data Table: Displays raw sales and profit data for reference.
+----------------+----------------+
| Total Sales | Total Profit |
| (KPI Card) | (KPI Card) |
+----------------+----------------+
| Bar Chart (Sales Horizontal) |
+-------------------------------------------------------+
| Column Chart (Profit Vertical) |
+-------------------------------------------------------+
| Data Table |
+-------------------------------------------------------+
Adding a month filter updates all components: KPI cards, bar chart, column chart, and data table to show data only for the selected month(s).
If you add a filter for Month = "March", which components update?
- KPI Cards show sales = 200 and profit = 70.
- Bar chart shows a single horizontal bar for March sales = 200.
- Column chart shows a single vertical column for March profit = 70.
- Data table shows only the row for March.
Practice
In Figma, what does setting the direction to horizontal do to the layout of items?
Solution
Step 1: Understand horizontal direction meaning
Horizontal direction means arranging items side by side, moving left to right.Step 2: Apply to Figma layout
Setting direction to horizontal in Figma aligns items next to each other horizontally.Final Answer:
Arranges items side by side from left to right -> Option AQuick Check:
Horizontal = side by side [OK]
- Confusing horizontal with vertical stacking
- Thinking horizontal overlaps items
- Assuming random placement
Which of the following is the correct way to set a vertical direction for a frame in Figma?
frame.layoutMode = ?
Solution
Step 1: Recall Figma layoutMode property
Figma useslayoutModeto set direction, accepting "horizontal" or "vertical".Step 2: Choose vertical direction value
To stack items top to bottom, setlayoutMode = "vertical".Final Answer:
"vertical" -> Option CQuick Check:
Vertical direction = "vertical" string [OK]
- Using "horizontal" instead of "vertical"
- Using invalid strings like "stack" or "inline"
- Omitting quotes around the string
Given this Figma code snippet, what will be the visual arrangement of the child items?
frame.layoutMode = "horizontal"; frame.children = [item1, item2, item3];
Solution
Step 1: Identify layoutMode setting
The code setslayoutModeto "horizontal", meaning items align left to right.Step 2: Understand children arrangement
Children in a horizontal layout appear side by side in the order listed.Final Answer:
Items arranged side by side horizontally -> Option AQuick Check:
layoutMode "horizontal" = side by side [OK]
- Assuming vertical stacking despite horizontal setting
- Thinking items overlap
- Ignoring the order of children
What is wrong with this Figma code if the intention is to stack items vertically?
frame.layoutMode = "horizontal"; frame.children = [itemA, itemB];
Solution
Step 1: Analyze layoutMode setting
The code setslayoutModeto "horizontal", which arranges items side by side.Step 2: Correct direction for vertical stacking
To stack items vertically,layoutModemust be "vertical".Final Answer:
The layoutMode should be set to "vertical" instead of "horizontal" -> Option DQuick Check:
Vertical stacking requires layoutMode = "vertical" [OK]
- Leaving layoutMode as "horizontal"
- Thinking children array affects stacking
- Assuming grouping is required
You want to create a dashboard in Figma where KPI cards are arranged in two rows, each row showing cards side by side. Which direction settings should you use?
Solution
Step 1: Understand dashboard layout requirement
The dashboard has two rows stacked vertically, so the main frame stacks rows top to bottom.Step 2: Arrange cards side by side in each row
Each row should arrange cards horizontally side by side.Step 3: Apply direction settings
Set main framelayoutModeto "vertical" to stack rows, and each row framelayoutModeto "horizontal" for side-by-side cards.Final Answer:
Set the main frame to vertical and each row frame to horizontal -> Option BQuick Check:
Main vertical + rows horizontal = 2 rows with side-by-side cards [OK]
- Setting main frame horizontal causing one row only
- Setting rows vertical stacking cards instead of side by side
- Using same direction for both frames
Ready to prove it?
Pass the test and this pattern moves unknown
