Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Tableau 2019.x Cookbook

You're reading from   Tableau 2019.x Cookbook Over 115 recipes to build end-to-end analytical solutions using Tableau

Arrow left icon
Product type Paperback
Published in Jan 2019
Publisher Packt
ISBN-13 9781789533385
Length 670 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (6):
Arrow left icon
Tania Lincoln Tania Lincoln
Author Profile Icon Tania Lincoln
Tania Lincoln
Slaven Bogdanovic Slaven Bogdanovic
Author Profile Icon Slaven Bogdanovic
Slaven Bogdanovic
Teodora Matic Teodora Matic
Author Profile Icon Teodora Matic
Teodora Matic
Rintaro Sugimura Rintaro Sugimura
Author Profile Icon Rintaro Sugimura
Rintaro Sugimura
Dmitry Anoshin Dmitry Anoshin
Author Profile Icon Dmitry Anoshin
Dmitry Anoshin
Dmitrii Shirokov Dmitrii Shirokov
Author Profile Icon Dmitrii Shirokov
Dmitrii Shirokov
+2 more Show less
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Getting Started with Tableau Software 2. Data Manipulation FREE CHAPTER 3. Tableau Extracts 4. Tableau Desktop Advanced Calculations 5. Tableau Desktop Advanced Filtering 6. Building Dashboards 7. Telling a Story with Tableau 8. Tableau Visualization 9. Tableau Advanced Visualization 10. Tableau for Big Data 11. Forecasting with Tableau 12. Advanced Analytics with Tableau 13. Deploy Tableau Server 14. Tableau Troubleshooting 15. Preparing Data for Analysis with Tableau Prep 16. ETL Best Practices for Tableau 17. Other Books You May Enjoy

Customizing tooltips

When you hover over a point in your view, a tooltip will appear. Tooltips are small boxes, holding detailed information about a data point in the view, and are present by default. In this recipe, you will learn how to customize tooltips.

Getting ready

To follow this recipe, connect to the Baby_names.csv data source and open a new worksheet.

How to do it...

  1. Drag and drop Frequency from Measures onto Size in the Marks card.
  2. Drag and drop State from Dimensions onto Detail in the Marks card.
  3. Drag and drop State from Dimensions onto Label in the Marks card.
  4. Drag and drop Frequency from Measures to Color in the Marks card.
  5. Click on the drop-down menu in the Marks card and select Circle:
  1. Drag and drop Name from Dimensions into the Filter shelf.
  2. In the Filter [Name] window, click None to deselect all values.
  3. Start typing emma in the search bar at the top of the list, select Emma, and click on OK:
  1. Drag and drop Gender from Dimensions onto Detail in the Marks card.
  2. Drag and drop Name from Dimensions onto Tooltip in the Marks card.
  3. Double-click on Tooltip in the Marks card.
  4. In the Edit Tooltip window, hit Enter to add a row above the existing text and place your cursor in the new row.
  5. Click on Insert and select ATTR(Name):
  1. Click on Insert again and select Gender.
  1. Between <ATTR(Name)> and <Gender>, type is a beautiful. After <Gender>, type name. The whole expression should be <ATTR(Name)> is a beautiful <Gender> name, as shown in the following screenshot:
  1. Click on OK. The expression we entered into the tooltip will now appear when you put your mouse over any of the circles:

How it works...

Tooltips are, by default, set to hold information on the fields that are in the view and their current values. However, as we just saw, you can customize them by adding additional elements, or removing the ones that are there by default. We inserted fields such as Name and Gender into the Tooltip section; they will change automatically. If we change the Name filter from Emma to another name, it will change the value of the name in the sentence, as well as automatically update the gender.

There's more...

You can also insert another worksheet from the workbook into the tooltip. Let’s say you want your user to be able to see where the particular state is on the map. We can do this by executing the following steps:

  1. Create another sheet with the map, just by opening a blank worksheet and double-clicking on State in Dimensions.
  2. On the original sheet, double-click on Tooltip to open the Edit Tooltip window and add an empty row:
  1. Click on Insert and navigate to Sheets | Sheet 2. Tableau will insert an expression referencing Sheet 2 into the Tooltip section:
  1. If you go to Sheet 2, you will notice that Tableau added Tooltip (State) as a filter. When your mouse cursor goes over any of the states in Sheet 1, a tooltip with a map marking that state will show up:

See also

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime