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 10 Business Intelligence Cookbook

You're reading from   Tableau 10 Business Intelligence Cookbook Create powerful, effective visualizations with Tableau 10

Arrow left icon
Product type Paperback
Published in Nov 2016
Publisher Packt
ISBN-13 9781786465634
Length 476 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (2):
Arrow left icon
Donabel Santos Donabel Santos
Author Profile Icon Donabel Santos
Donabel Santos
Paul Banoub Paul Banoub
Author Profile Icon Paul Banoub
Paul Banoub
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Basic Charts FREE CHAPTER 2. Advanced Charts 3. Interactivity 4. Dashboards and Story Points 5. Maps and Geospatial Visualization 6. Analytics 7. Data Preparation A. Calculated Fields Primer B. Resources Index

Adding a constant line

A constant line is simply a line we add to a graph that has a value that doesn't change. This value is typically hardcoded (or set) and is not determined by other values in the graph. For example, if we wanted to show the value of pi (3.1415927 – depending on the precision you want to show), we can use a constant line.

In this recipe, we will add constant reference lines to visualize players who, relatively, are earning less in salary but getting more in endorsements:

Adding a constant line

Getting ready

To follow this recipe, open B05527_06 – STARTER.twbx. Use the worksheet called Constant Line, and connect to the Top Athlete Salaries (Global Sport Finances) data source:

Getting ready

How to do it...

Here are the steps to create the graph:

  1. Click on the dropdown in the Marks card and change the mark to Circle.
  2. From Measures, drag Salary/Winnings $ to Columns.
  3. From Measures, drag Endorsements $ to Rows.
  4. From Dimensions, drag Sport to Color.
  5. From Dimensions, drag Athlete to Detail.
  6. On the side...
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 $19.99/month. Cancel anytime