Introduction
Last week, Japan hosted its own Iron Viz at Salesforce World Tour Tokyo: Viz Games 2026. The theme was pro baseball pitch-by-pitch data, and one of the techniques that caught my eye was [Nitabaru-san]’s use of the density mark type.
Density marks rarely show up in #WOW, so this week they take center stage. Using Statcast data for the top 20 home run hitters of the 2025 MLB season, you’ll layer two density marks on top of each other:
– Pitches: where pitchers attacked the hitter
– Hits: where the hitter actually did damage
Then, add home runs and batting average by zone on top. The gap between pitches and hits tells the story. Click any hitter in the list to see how different they are.
No baseball knowledge needed. All coordinates and flags are pre-calculated in the data, and the strike zone is provided as a background image. Spend your energy on the density marks!
Requirements
- Dashboard size: 1400 x 800
- # of sheets: up to you
Hitter list
- Show the top 20 HR hitters, sorted by HR (descending). Break ties by AVG (descending).
- Show the rank, the name as “First Last” (e.g. Shohei Ohtani), and HR as a bar with a label.
- Clicking a hitter selects him. Highlight the selected hitter. Default: Shohei Ohtani.
Pitch location view
Build one pitch location view for the selected hitter, made of these layers (bottom to top):
| Layer | X | Y | Mark |
|---|---|---|---|
| Background image | pitch_x | pitch_y | zone_grid_dark_bg_v2.png (or zone_grid_light_bg_v2.png) |
| Pitches | pitch_x | pitch_y | Density, gray gradient |
| Hits | pitch_x | hit_y | Density, orange gradient |
| Home runs | pitch_x | hr_y | Circle |
| Zone AVG | zone_label_x | zone_label_y | Text: AVG (3 decimals, no leading zero, e.g. .406) and H/AB, one label per zone |
To make everything line up, use these exact settings:
- Background image: X field
pitch_x, Left -2, Right 2. Y fieldpitch_y, Bottom -1, Top 2. Uncheck “Lock Aspect Ratio” and check “Always Show Entire Image”. - Fix every axis in every layer to X: -2 to 2 and Y: -1 to 2. Hide all axes, gridlines and zero lines.
- Keep the view’s width to height at about 0.7 : 1, so the strike zone isn’t stretched.
- The view is from the catcher’s point of view (the image shows where right- and left-handed batters stand).
- A few pitches have no location data (null). They should not show up in the view, and no null indicator should be visible.
Each density layer scales its color to its own peak. That’s what makes the comparison work: you’re comparing the shape of where pitches go with the shape of where hits come from, not raw counts.
Switch hitter
- Cal Raleigh bats from both sides (
stand= L or R), so inside and outside flip depending on the side. Add a batting side filter (All / L / R) that applies to the whole pitch location view.
KPIs and title
- Show pitches seen (all rows, including pitches without location), AVG with H / AB, and HR for the selected hitter.
- AVG = SUM(
is_hit) / SUM(is_ab). Your numbers should match Baseball Savant (e.g. Ohtani .282, Judge .331).
- AVG = SUM(
- Title: “Where Does [First Last] Do His Damage?”
- Add a “How to read” legend. Something like:
- Gray = where pitchers throw to him. Orange = where his hits come from. Darker = more concentrated. Circle = home run.
- Each layer is scaled on its own, so compare shapes, not darkness.
Hint 1: The background image doesn’t show up (Beginner)
- Background images need disaggregated X and Y fields. Right-click
pitch_xandpitch_y(andhit_y,hr_y,zone_label_x,zone_label_y) and convert them to Dimension (keep them continuous). - Add the image from Map > Background Images > [your data source].
Hint 2: One density layer, one gradient (Intermediate)
- A density mark card can only have one color gradient, so you can’t split pitches and hits by color on a single card.
- Put
pitch_yandhit_yon Rows, make it a dual axis, and synchronize the axes. Each axis gets its own marks card, so you can give each one its own density palette. hit_yis null for every pitch that wasn’t a hit, so only hits are drawn on that layer.- If the hits end up underneath, right-click the axis and choose “Move marks to front”.
- There are far fewer hits than pitches. Use a slightly larger size for the hits layer, and lower the intensity of the pitches layer so the orange stands out.
Hint 3: More layers than a dual axis allows (Advanced)
- A dual axis gives you two layers. For home runs and zone labels, build separate sheets with the same filters and the same fixed axes.
- Set the worksheet shading to None and float them on top of the density sheet at exactly the same position and size.
- The background image only appears on the sheet whose Y field is
pitch_y, so it stays on the bottom layer. - Apply the batting side filter to all of these sheets (Apply to Worksheets > Selected Worksheets).
Hint 4: Ranking with a tie-break (Intermediate)
- Sort by a calculated field like SUM(
is_hr) + AVG. AVG is always below 1, so it only matters when HR is tied.
Hint 5: Selecting a hitter (Intermediate)
- Create a string parameter (e.g.
p_Batter) and a calculated field[player_name] = [p_Batter]to filter and highlight. - Use a dashboard Change Parameter action from the hitter list. Keep the current value when the selection is cleared.
Hint 6: “First Last” name (Beginner)
player_nameis “Last, First”. Use SPLIT to swap the parts, e.g.TRIM(SPLIT([player_name], ",", 2)) + " " + SPLIT([player_name], ",", 1).- For the title, use a small sheet filtered to the selected hitter, or the worksheet title.
Dataset
This week uses Statcast pitch-by-pitch data from Baseball Savant (© MLB Advanced Media, LP) for the 2025 MLB regular season. Download the data here: [data]
Background image

Attribute
When you publish your solution on Tableau Public make sure to take the time and include a link to the original inspiration. Also include the hashtag #WOW2026 in your description to make it searchable!
Share
After you finish your workout, share on X and/or LinkedIn using the hashtag #WOW2026 #Tableau and tag @WorkoutWednsday. Also, come join us in the Workout Wednesday channel on the Tableau Community Slack!

