Okay – I thought I was done with the Tableau user interface tips series, but I’ve got a bonus tip for you. As is often the case, new client requirements inspire new approaches that are made possible through Tableau’s flexibility. While I was writing the five posts in the UI series, a need came up to create a navigation that doubles as a color legend. You can set up color legends to highlight dimension members, but this navigation needed to filter. A filter alone wouldn’t work because filters don’t include color encoding.

So let’s combine the two using a highlight table and dashboard actions! This approach provides several benefits including (1) formatting flexibility (2) improved dashboard processing time and (3) a better user experience.

If you are familiar with this technique, you likely know that the Square mark type can limit your ability to make nice, evenly-sized squares that fill all the available space in each cell of the highlight table. This tutorial shows you a trick for getting around that too – producing perfect rectangles every time!

How to Make a Custom Color Picker in Tableau

 

Introduction to Tableau navigation

To illustrate how to combine a navigation and color legend using a highlight table with dashboard actions, we will recreate this small dashboard. This dashboard uses a Tableau dual-axis waterfall chart to show how profit is trending in the Sample – Superstore dataset.

How to Make a Tableau Navigation that Doubles as a Color Legend

Clicking on the highlight table at the top filters the chart.

Tableau Highlight Table Navigation Filtered to South Region

Create a free account, or login.

Unlock this tutorial and hundreds of other free visual analytics resources from our expert team.

Already have an account? Sign In

Name
Password
This field is for validation purposes and should be left unchanged.

Explore unlimited access to all offerings.

See membership options.

Creating a navigation control sheet

The navigation at the top is created by setting up a control sheet that includes the dimension members you want to include in the navigation.

New to Playfair Data?

Watch our 90-second intro video and receive tips on making your data usable.
 
Watch Video

To set up the view, start by creating a new worksheet, placing the dimension of interest on the Columns Shelf, changing the mark type to Square, and placing the dimension of interest on the Color Marks Card as well as the Label Marks Card.

Create a navigation control sheet

This is a good start, but obviously we need to make the squares larger; ideally filling all of the white space between each button. Here’s where most run into some formatting issues. Here’s how the view looks after clicking on the Size Marks Card to increase the size of the square marks and dragging the slider all the way to the right (making the marks as large as possible).

Adjust the Size slider all the way to the right

Yikes – not very effective! The orange square that represents the Central region is laying on top of the others so we do not see as much of the red and blue squares; or any of the turquoise square. Luckily, there is a simple solution: Drag the dimension of interest to the Columns Shelf a second time.

Drag the dimension of interest to the Columns Shelf a second time

There are a few more things I like to do to a view like this before adding it to a dashboard:

– Hide the headers by right-clicking on them and deselecting “Show Header”.
– Format the column and row separators for the table by right-clicking anywhere on the table and choosing “Format…”
– Ensure the labels are always a consistent color by clicking on the Label Marks Card and changing the font format

Format the view before adding it to the dashboard

 

Adding the filter dashboard action

The color legend / navigation is now ready to be added to a dashboard. The user experience of having the dashboard filter to the dimension member clicked from the table is accomplished through dashboard actions.

Make your data more usable with our free newsletter.

Get monthly tips and tutorials:

Simply add a dashboard action that suits your needs; here is a look at the dashboard action for the use case illustrated in this post.

Add the filter dashboard action

Thanks for reading,
– Ryan


Access Exclusive Benefits

Dashboard templates, digital credentials, and more.

Related Content

Ryan Sleeper

A Trick for Getting Around Tableau’s Default Highlight Formatting By default, Tableau highlights dashboard action selections by graying out non-selected…

Ryan Sleeper

Link Tableau dashboards with a seamless navigation menu This video shows you how to create a user-friendly navigation experience by…