Skip to main content

Do any of you know if it is possible to build a parameter that would allow a user to select a defined color palette?

 

Here's the situation:

I have a dashboard and I want to be able to create a parameter that will allow my end user to select a color palette. For example, I want to provide them with the ability to select between a dark color pallet, a light color pallet and a color blind pallet.

 

Thanks in advance!

5 respostas
  1. 6 de dez. de 2021, 14:42

    This can be done pretty easily. For example, here I have a pie chart.

     

    This can be done pretty easily. For example, here I have a pie chart. And I've created a parameter called Palette with two options--Palette 1 and Palette 2. I'll drag Palette to the detail card. 

    And I've created a parameter called Palette with two options--Palette 1 and Palette 2. I'll drag Palette to the detail card.

     

    image 

    Then I'll click the icon to the left of the pill and change it to color. I now have two fields controlling the color.

     

    image 

    Finally, I specify the different colors as desired, for each palette option.

     

    imageimage 

    See attached.

     

    For a full-blown example of this, see my viz on Modern Slavery, which has a toggle button which allows you to cycle through multiple color palettes: https://public.tableau.com/views/Slavery_3/Slavery?:showVizHome=no#1

0/9000