There are two distinct types of line formatting in Tableau, Lines and Borders. Lines are tied to an axis and are related to values in a chart. Borders provide spatial separation on worksheets and dashboards, denoting dashboard regions and visually dividing or grouping rows and columns.

This is the second post in our series on formatting in Tableau. For other applications, see Tableau Formatting Series: How to Use Shading and Backgrounds.

Live Tableau Training
May 14 – 17, 2024

Learn directly from industry-leading experts, access hundreds of post-training resources, and more.

Learn more formatting tips with Playfair+

Nuanced control of lines and borders can guide the user experience. Gridlines can be added to a worksheet to help the user estimate values. Alternatively, lines can be removed from a labeled view to increase the data-ink ratio. Similarly, removing borders from a view helps the user focus on the data and draw insights. Unless the border aids comprehension, providing a guide to a long row of values, denoting totals, or visually grouping sections. A good rule of thumb is to start with no lines, and intentionally add them one by one. Carefully consider how subtle or bold the line should be for the function it serves.

Tableau Formatting Series: How to Use Lines and Borders

 

How to use ‘worksheet lines’ in Tableau

Lines will only exist on worksheets with at least one axis. This is the only requirement for gridlines, zero lines, axis rulers, and axis ticks. A Reference Line, Trend Line, or Drop Line has to be intentionally added to the worksheet through the Analytics pane, Analysis menu, or by right-clicking the view.

Right click the axis and choose Show Trend Lines

Access the line formatting options by opening the Format menu and selecting Lines. Reference lines, trend lines, and drop Lines can be formatted individually by right-clicking and selecting Format.

Open the Format pane for Lines

 

The Format pane has three options: Sheet, Rows, and Columns. If a line is adjusted in the Row or Column menu, the Sheet menu will not show the change. If you are looking for an errant line you’ll need to check each setting.

The Format pane has three options: Sheet, Rows, and Columns

Lines only exist within sub panes and axes.

Lines only exist within sub panes and axes.

 

How to use ‘worksheet borders’ in Tableau

Borders will divide sub panes but never enter them.

Borders will divide sub panes but never enter them.

Even the simplest worksheet can have a border. Access the border formatting options by opening the Format menu and selecting Borders.

Access the border formatting options by opening the Format menu and selecting Borders.

Just like lines, when a border is adjusted in the Row or Column menu, the Sheet menu will not show the change. If you are looking for an errant border, you’ll need to check each setting.

When a border is adjusted in the Row or Column menu, the Sheet menu will not show the change.

My most commonly used border settings are Row Divider and Column Divider. Tableau defaults to include dividers for every dimension, but I reduce the number of dividers or eliminate them completely on most worksheets.

Receive More Free Tips & Tricks Like This Every Week

Let’s stay in touch:

Playfair+Envelope


How to use ‘dashboard borders’ in Tableau

When a worksheet is added to a dashboard it can add a layout border. This border outlines the entire sheet. A border can be added to any dashboard object using the Layout pane.

A border can be added to any dashboard object using the Layout pane.

The border appears between the inner and outer padding of the object. You can increase the white space outside of the border by increasing the outer padding. To increase the white space between the border and its contents increase the inner padding.

Padding in the dashboard

These borders can be used to add emphasis, separation, or group objects.

Borders can be used to add emphasis, separation, or group objects.

To recap, Lines only exist on worksheets with at least one axis. A Reference Line, Trend Line, or Drop Line must be intentionally added and can be individually modified. Borders surround worksheet panes but never enter sub panes. A Layout Border can be added to any dashboard object, and the white space around them can be controlled by modifying the padding settings. Intentional line choice aids dashboard functionality, helping your end user draw conclusions faster with more accuracy.

– Felicia

Visual Analytics Training

 

Join Playfair+

Related Content

Ryan Sleeper

Unlock complete flexibility for Tableau crosstabs Learn how to take Tableau text tables beyond the defaults by (1) creating tables…