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!
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.
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.
Finally, I specify the different colors as desired, for each palette option.
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