Adding colors

Depending on the type of chart you created, Tableau may or may not color code any data. Using the Color box in the Marks pane, however, you could easily add colors to your graphs.

Getting ready

Let's use the sample file Sample – Superstore Sales (Excel). Open a new worksheet and select Sample – Superstore Sales (Excel) as the data source.

How to do it...

Once the data is loaded on the worksheet, perform the following steps to add colors to encode the data:

  1. Drag-and-drop Profit from Measures into the Columns shelf.
  2. Drag-and-drop Sub-Category from Dimensions into the Rows shelf.
  3. To see the Profit values by Ship Mode, drag-and-drop Ship Mode in the Color box in the Marks pane to generate a chart shown in the following screenshot:
  4. To see the ...

Get Tableau: Creating Interactive Data Visualizations now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.