When I was creating a sales dashboard for Tableau, the sales team told me the charts looked plain and were difficult to read. The numbers and sales figures were there on the chart, but it was difficult to figure out the different measures.
As a solution, I added colors to the bar charts. By adding colors to the bars, it was easy to highlight important information, such as the top-performing category or regions with low sales.
In this Tableau tutorial, I will explain the various methods to add colors to a bar chart in Tableau.
Add Colors to Bar Charts in Tableau
In Tableau, there are multiple methods to add color in bar charts according to the specific requirements. In the examples that follow, we will discuss the methods for coloring bar charts in Tableau.
- Add colors to bar charts in Tableau with the color shelf
- Add color to only one bar in a Tableau bar chart
- Add shaded colors in the Tableau bar chart
Add Colors to Bar Charts in Tableau With Color Shelf
The first option for easily adding colors to a Tableau bar chart is to use the color shelf directly.
In the chart below, we will use the Tableau superstore dataset to create the view, and then we will add colors to it.
Now, connect the Tableau with the superstore dataset and follow the steps below to add colors to bars in the Tableau chart using the color shelf.
To create the view, add a measure, such as Sales, to the Rows and dimensions, such as Region, to the Columns.

Now, there are three scenarios to add colors to the bars: adding color for the same bar dimension, adding color to different dimensions, and using a measure to color the dimension bars.
- Adding color for the same bar dimension: For example, if the dimension is Region and we add Region to the Color card, then all bars will be displayed in different colors.

- If we use a dimension different from the one we used in Columns, it will create a stacked bar chart. For example, in the chart dimension is region, and you add a Category to the color card, then the category color will be stacked in each region bar.

- If we add measures such as sales or profit, then the bar colors will be in shades as shown in the steps below.

To get more color options, click Color -> Edit Color -> Select Color Palette. Then select another color palette and click OK. Now, we can select colors from the newly assigned color palette.

This way, we can add or change the color in the Tableau bar chart using the Color shelf.
Add Color to Only One Bar in a Tableau Bar Chart
In this example, we will see how we can add color to only one chart in the Tableau bar chart using a calculated field. In the calculation, we will add a condition that will display a different color for one bar in the bar chart.
In the steps below, we will use the Tableau Superstore dataset to create the bar chart.
Add the Sales to the Rows and Region to the Columns to create the bar chart view.
Now, create a calculated field using the formula below. This will display a different color for the bar when the region is “East“.
IF [Region]= 'East' THEN 'Green' ELSE 'Grey' ENDDrag the calculated field to the color card, then it will show the East region bar as “Green” and the rest of the bars as “Grey” color.

In the same way, we can also use measures to define a condition that changes color for only one bar in a Tableau bar chart. For example, we want to display the region with the highest sales in a different color, so we can use the formula below.
IF RANK(SUM([Sales]))=1 THEN "Green" ELSE "Grey" ENDNow, drag the calculated field to the Color card in the Marks section.

With this, we can see that the region with the highest sales rank is displayed in a different color from the other bars.
This way, we can add or change the color for only one bar in the Tableau bar chart by using the above formula conditions.
Add Shaded Colors in Tableau Bar Chart
In this method of adding color to the Tableau bar chart, we can show the stacked dimensions on the bars in a shaded color. This is an alternative to a stacked bar chart where each dimension is displayed in a different color.
Now, drag the Sales to Rows and Region to the Columns to create a Bar chart.

To add the color, drag the Region to the Color. This will give a different color to each bar in the chart.

To add the color shades, we need another dimension that will be stacked in each bar. Unlike a stacked bar chart, we will add a dimension, such as Category, to the detail card, then change its type to Color.

Now, we can see the bars with shaded colors in the bar chart. These shades are the stacked dimensions of the Category. This chart displays sales of categories in each region, with each shade representing a category.

This way, we can add shaded colors in a Tableau bar chart by following the above steps.
Conclusion
In this Tableau tutorial, we have learned different ways to add colors to bar charts in Tableau. In the above methods, we learned how to use the Color shelf for coloring bars, how to highlight only one bar with a calculated field, and how to apply shaded colors for more detailed analysis.
By using the above methods, we can simplify the bar charts visually and highlight the key measures and dimensions in the Tableau bar chart.
You may also like to read:
- Tableau Gantt Chart With Start and End Date
- Tableau Gantt Chart With Milestones
- Tableau Combination Chart
- Slope Chart in Tableau
- Conditional Formatting in Tableau
- Remove ABC Column in Tableau
I am Bijay Kumar, the founder of SalesforceFAQs.com. Having over 10 years of experience working in salesforce technologies for clients across the world (Canada, Australia, United States, United Kingdom, New Zealand, etc.). I am a certified salesforce administrator and expert with experience in developing salesforce applications and projects. My goal is to make it easy for people to learn and use salesforce technologies by providing simple and easy-to-understand solutions. Check out the complete profile on About us.