EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 360+ Courses All in One Bundle
  • Login
Home Data Science Data Science Tutorials Tableau Tutorial Legend in Tableau
Secondary Sidebar
Tableau Tutorial
  • Charts
    • Tableau Charts
    • Tableau Bar Chart
    • Tableau Chart Types
    • Donut Chart in Tableau
    • Tableau Gauge Chart
    • Funnel Chart in Tableau
    • Gantt Chart in Tableau
    • Bubble Chart in Tableau
    • Pareto Chart in Tableau
    • Sankey Chart In Tableau
    • Stacked Bar Chart in Tableau
    • Tableau Bullet Chart
    • Waterfall Chart in Tableau
    • Line Chart in Tableau
    • Heat Map in Tableau
    • Histogram in Tableau
    • CrossTab in Tableau
    • Treemap in Tableau
    • Trend Lines in Tableau
    • Tableau Reference Lines
    • Tableau Dual Axis
    • Legend in Tableau
    • Pie Chart in Tableau
    • Tableau Storyline
  • Basic
    • What is Tableau
    • What is Tableau Dashboard
    • What is Tableau Server
    • Uses of Tableau
    • Tableau Versions
    • Tableau Architecture
    • Is Tableau Free
    • Tableau New Features
    • How To Install Tableau
    • How to Use Tableau?
    • Install Tableau Server
    • Tableau Commands
  • Statement
    • Tableau IF Statement
    • Case Statement in Tableau
  • Functions
    • Tableau Functions
    • Tableau String Functions
    • Concatenate in Tableau
    • Rank Function in Tableau
    • Tableau Aggregate Functions
    • Window Sum Tableau
    • LOD Expressions in Tableau
    • LOOKUP Function in Tableau
    • Tableau Fixed Function
    • Tableau Count Distinct
    • Tableau Window Functions
  • Sort/Filters
    • Sorting in Tableau
    • Filters in Tableau
    • Types of Filters in Tableau
    • Tableau Action Filter
    • Context Filter in Tableau
    • Tableau Parameter Filter
    • Adding Filters in Tableau Dashboard
    • Tableau Context Filter
  • Tableau Dashboard
    • Dashboard in Tableau
    • Tableau Dashboard Examples
    • Tableau Dashboard Creation
    • Tableau Dashboard Design
    • Tableau Workbook
  • Advanced
    • Tableau Bins
    • Tableau 3D
    • Tableau Export to Excel
    • Tableau Reporting
    • Tableau Reader
    • Tableau Map
    • Tableau Viewer
    • Tableau Prep Builder
    • Tableau Bridge
    • Tableau Tooltip
    • Tableau Hyper
    • Tableau Zen Master
    • Tableau Union
    • Tableau Templates
    • Tableau Alerts
    • Tableau Reporting Tool
    • Conditional Formatting in Tableau
    • Tableau Web Data Connector
    • Tableau BI Tool
    • Data Blending in Tableau
    • Parameters in Tableau
    • Tableau Data Sets
    • Creating Set in Tableau
    • Tableau Drill Down
    • Tableau Dynamic Parameters
    • Tableau Table Calculation
    • Tableau Visualization
    • Tableau Joins
    • Pivot in Tableau
    • Data Visualization With Tableau
    • Forecast in Tableau
    • Map Layers in Tableau
    • Group in Tableau
    • Tableau Group by
    • Hierarchy in Tableau
    • Sets in Tableau
    • How to create a Set in Tableau
    • Tableau Order of Operations
    • Tableau User Group
    • Tableau Calculated Field
    • Custom SQL in Tableau
  • Interview Questions
    • Tableau Interview Questions

Related Courses

Tableau Certification Course

Business Intelligence Courses

Data Visualization Courses

Legend in Tableau

By Priya PedamkarPriya Pedamkar

Legend in Tableau

Introduction to Legend in Tableau

A visualization does the important work of conveying insights from data. However, it won’t be possible for the user of the analysis to correctly interpret the insights unless there’s a clear representation of the various parts in the data. The meaningful representation of the data is enabled by legend, a crucial part of any visualization. Legend makes use of colors, shapes, texts to highlight the various parts of the visualization effectively. Tableau provides various options pertaining to the concept which makes Legend important.

Understanding Legends in Tableau

Let’s now go through the step-by-step procedure to understand various operations pertaining to legends in Tableau. For this demonstration, we are using the Distribution Volume dataset. It contains volume distributed to various cities across India. The important dimensions are Mode, Distribution Unit, and Region, while the Distribution Unit is the measure in the dataset.

Step 1: First load the dataset. For that click on “New Data Source” under Data Menu as shown below.

legend in tableau

Start Your Free Data Science Course

Hadoop, Data Science, Statistics & others

Step 2: In the Connect section select the requisite data source type. In this case, it is clicked on “MS Excel”, so click on “Microsoft Excel” as shown below.

legend in tableau

Step 3: The data gets loaded and can be seen in the Data Source tab as shown below.

legend in tableau

Step 4: Moving to the sheet, we can find the dimensions and the measure present in the requisite sections as shown by the below screenshot.

legend in tableau

Creating Legend in Tableau

Step 1: First, let’s create a simple visualization. Bring dimensions Mode and Region into Rows region, and measure Distribution Volume into the Columns region. We get a horizontal bar chart as shown below. It essentially gives us the Region wise Distribution Volume by two different modes. However, the visualization doesn’t seem that insightful owing to a single color which makes interpretation difficult. So, we need to create a legend.

legend in tableau

Step 2: As shown in the following screenshot, we just dragged Region dimension over Color in Marks card, and automatically, Region Legend got created. This is as highlighted below.

legend in tableau

Step 3: Like Region legend, we can also create a legend for the Mode dimension. This is as shown by the below screenshot.

legend in tableau

Deleting Legend in Tableau

Step 1: In order to delete the legend in Tableau, Remove the dimension from Color in Marks card, and automatically the legend disappears. This has been shown in the below screenshot.

legend in tableau

Step 2: We can also delete a particular legend entry. Like as illustrated by the following screenshot, we clicked on Central, and selecting “Exclude” will remove it from the analysis.

legend in tableau

Step 3: As shown by the following screenshot, the Central region has got removed from the analysis.

legend in tableau

Step 4: We can remove the legend, by selecting the “Remove from Dashboard” option as shown below.

legend in tableau

Floating Legend in Tableau

Step 1: Floating is a concept in Tableau that allows free movement of the visualization or legend in the dashboard window. The following screenshot shows how the legend of the visualization has overlapped on the visualization. To have floating functionality enabled, the Floating option must be selected as highlighted in the following screenshot.

 floating functionality

Step 2: The following screenshot illustrates a floating legend. It is basically being moved freely by the mouse.

 freely by the mouse

Step 3: Though we can float legends as we want, they must always be set over a dashboard in a systematic manner as shown below.

float legends

Step 4: In the drop-down menu of the legends, we have two options pertaining to Floating viz. Floating and Floating Order. The Floating is checked because we ensured it in the prior steps. In the Floating Order, there are four options that allow us to display legends accordingly. As shown below, selecting “Send to Back” disappeared the legend entries as shown by the screenshot subsequent to the below screenshot.

“Send to Back”

legend in tableau

Step 5: We can bring back the entries by clicking on the “Bring to Front” option in the Floating Order, as shown below.

“Bring to Front”

Editing Legend in Tableau

Tableau provided us with numerous editing options. We shall see them in the following section.

Step 1: Click on the drop-down menu of the legend. We can find multiple options using which the legend can be edited. The first option is Edit Colors, highlighted in bold. Just click on it and the Edit Colors dialogue box pops-up as shown by the screenshot subsequent to the below one. From here, we can select colors for legend entries as needed.

Editing Legend in Tableau

legend in tableau

Step 2: The following screenshot shows how unselecting “Show Title” removed the title of the legend. Just select the option to bring the title back. We can edit the title. For this click on the Edit Title option and type the requisite title in the “Edit Legend Title” box as illustrated by the screenshot subsequent to the below one.

legend in tableau

legend in tableau

Step 3: We can format the legend by clicking on “Format Legends” option. On the left side make necessary changes in the Format Legends section. The following screenshot shows this.

legend in tableau

Step 4: The legend items can be arranged as needed. Various options under the “Arrange items” option facilitate this as shown below.

legend in tableau

Step 5: The “Highlight Selected items” enable us to select particular entries. If this option is not checked then individual selection won’t work. The following screenshot shows the option is checked.

“Highlight Selected items”

Step 6: The following screenshot shows, how selecting West legend highlighted the west region in the visualization.

West legend highlighted

Step 7: We can change the name of any particular entry. Just click on it, and in the drop-down menu click on the “Edit Alias” option.

 “Edit Alias”

Hiding and Unhiding Legend in Tableau

Step 1: The legend that we create can be hidden and brought back. In order to hide a particular item, click on it, and in the drop-down menu, click on Hide. This is as shown by the below screenshot.

Working with legends

Step 2: In the following screenshot, we hid the legend for “West” following the above step.

 legend for “West”

Step 3: We can unhide the legend by clicking on the “Show hidden data” option in the drop-down menu of the legend as shown below.

 “Show hidden data”

Displaying Colour

Step 1: In the Analysis menu, in Legends, click on Color Legend.

Analysis menu

Step 2: Right-click on the visualization, and select Color Legend in Legends.

Right-click on the visualization

Step 3: In the case of the dashboard, in the drop-down menu, click on Color Legend in Legends.

Color Legend in Legends

Conclusion

Tableau provides elaborate functionalities to deal with legends. The legend in Tableau is not just an ordinary element associated with visualization. It is rather an important part of the analysis which can be manipulated as per the requirements of users.

Recommended Articles

This is a guide to Legend in Tableau. Here we discuss the step-by-step procedure to understand various operations pertaining to legends in Tableau. You may also look at the following articles to learn more –

  1. Concatenate in Tableau
  2. Map Layers in Tableau
  3. LOD Expressions in Tableau
  4. Tableau Workbook
  5. Custom SQL in Tableau
  6. Matlab Legend | How to Work? | Examples
Popular Course in this category
Tableau Training (8 Courses, 8+ Projects)
  8 Online Courses |  8 Hands-on Projects |  55+ Hours |  Verifiable Certificate of Completion
4.5
Price

View Course

Related Courses

Business Intelligence Training (12 Courses, 6+ Projects)4.9
Data Visualization Training (15 Courses, 5+ Projects)4.8
0 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Database Management
  • Machine Learning
  • All Tutorials
Certification Courses
  • All Courses
  • Data Science Course - All in One Bundle
  • Machine Learning Course
  • Hadoop Certification Training
  • Cloud Computing Training Course
  • R Programming Course
  • AWS Training Course
  • SAS Training Course

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Data Science Course

SPSS, Data visualization with Python, Matplotlib Library, Seaborn Package

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Data Science Course

Hadoop, Data Science, Statistics & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more