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.
Let's use the sample file Sample – Superstore Sales (Excel)
. Open a new worksheet and select Sample – Superstore Sales (Excel) as the data source.
Once the data is loaded on the worksheet, perform the following steps to add colors to encode the data:
When you drag a dimension to the Color box, Tableau automatically selects a color palette to draw colors from, and these colors are very distinctive and use different hues. When you drag a measure to the Color box, however, Tableau selects a gradient of a single color, and bigger data points (larger values) are encoded by a darker gradient, and smaller data points (smaller values) are encoded by a lighter gradient. It is important to note, however, that the underlying value of the dimension or measure also dictates what type of color palette would be chosen: a dimension of a continuous type of data can generate a gradient palette, and a discrete measure can generate a discrete color palette.