Adding a Transparent colour option to Tableau Desktop

Transparent Colour (#FFFFFF00)


For my Workout Wednesday (Week 41, 2021) visualisation, while re-creating the workout, I also decided to play around with the design (my favourite part!).

During this process, I really wanted some elements of my charts to be transparent in colour. The HEX code for a transparent colour is #FFFFFF00, however Tableau Desktop only allows you to manually enter colours consiting of 6 codes max… this meant I had to edit the preferences.tps file to add a Transparent colour option, which I could then use in my visualsation.

This was my first time incoperating a transparent colour into any of my data visualisations, and it’s really easy to do! Plus once you’ve edited / added this to your preferences.tps file, you can reuse this transparent colour many, many times after!

Here’s a quick guide on how you can add a Transparent colour option to Tableau Desktop.

Here’s how…

Step 1: Locate your Preferences.tps file


Open up File Explorer. Inside your Documents folder, you should see a folder called My Tableau Repository. Open this folder.

.

Step 2: Open this up using a Text Editor (e.g. Notepad)


Step 3: Paste the following code


Now, paste the following code into your Prefences file, between the <preferences> … </preferences> tags. This will add the transparent HEX code #FFFFFF00 into Tableau Desktop.

<color-palette name="Transparent" type="regular">

	<color>#FFFFFF00</color> 

	</color-palette>

✨ You can add many different colour palettes into your preferences file!

Step 4: Restart Tableau Desktop


NOTE: In the palette, the Transparent colour will appear Black, however once you apply it – it will show up Transparent!

Shreya Arya

Tableau / Alteryx Consultant • The Information Lab

Connect with me: