How to Create Waffle Chart in Tableau

This guide shows you how to create a waffle chart in Tableau—a useful visual for understanding what share a particular item holds in the overall market.

How to Create Waffle Chart in Tableau

Waffle chart is a great way to visualize the percentage share of a specific item relative to a whole. They serve as an effective alternative to pie charts, especially when you want to highlight individual proportions. However, they're not ideal for displaying a large number of items at once, and due to limitations in visual accuracy, it's best to pair them with labels for precise values.

In this tutorial, we’ll use smartphone market share data from StatCounter to create waffle charts representing the market share of Samsung, Apple, and Xiaomi in 2024.

Mobile Vendor Market Share Worldwide | Statcounter Global Stats
This graph shows the market share of mobile vendors worldwide based on over 5 billion monthly page views.

Step-by-Step: Building a Waffle Chart

  1. Start by creating a data source with 100 rows, each representing a square in the waffle chart.

  1. To arrange the chart in a 10x10 grid, create two calculated fields:
    1. Row: DIV([Index]-1, 10) + 1
    2. Column: ([Index]-1) % 10 + 1

(For more details on how to create grid layouts in Tableau, refer to our article on "Trellis Arrangement in Tableau" This technique is useful when horizontal or vertical comparisons are difficult due to a large number of items.)

Trellis Arrangement in Tableau
This is a useful technique when there are too many items to display in a single row or column, making it difficult to compare them effectively.

  1. To display the fill from bottom to top, reverse the sort order of the Row field.

  1. Use StatCounter’s smartphone market share dataset, specifically the 2024 values from vendor-ww-yearly-2021-2025

  1. In the Waffle data source, create a calculated field that references the [Apple] field from the vendor-ww-yearly-2021-2025 data source.
    Since we’re creating a simplified version that doesn’t show decimal points, we’ll use this calculation to highlight all [Index] values less than Apple’s percentage.
    (Depending on your needs, you can use the ROUND function.)

  1. Assign the calculated [Apple] field to color, and change the mark type to Circle.

  1. Hide headers and adjust the formatting to complete the chart. Use the sheet title to show the percentage value simply.

  1. Repeat the same process for Samsung and Xiaomi to create additional sheets and combine them into a dashboard.