KNOWLEDGE BASE

How to add "transparent" to the color legend


Published: 15 Jun 2022
Last Modified Date: 16 Jun 2022

Question

How to add "transparent" to the color legend
User-added image

Environment

  • Tableau Desktop

Answer

1. Move to the following folder
     C:\Users\User Name\Documents\My Tableau Repository
2. Open the file "Preferences.tps" with a text editor.
3. Add the script as following.
=================
<preferences>
<color-palette name="Transparent" type="regular">
<color>#FFFFFF00</color>
</color-palette>
</preferences>
=================
User-added image

4. Start Tableau Desktop and connect to sample superstore.
5. Drag [Order Date] to Column.
6. Drag [Sales] to Row.
7. Drag [Profit] to Row like following.
User-added image
8. Change the bar type of Profit to Line from Bar.
User-added image
9. Click on the legend and select Edit Colors.
User-added image
10. In Select Color Palette , select Transparent.
User-added image
11. Set Profit to Transparent
User-added image
Did this article resolve the issue?