Forum Discussion
dreyz64
Helper III
6 years agoDynamic Legend on a stacked column chart
Hello everyone, I am trying to create a stacked column chart with a legend that can be changed via a slicer. In Tableau it is very easy to do: I create a calculated field where I say "CASE param...
parry2k
Super User
6 years agodreyz64 you are looking dynamic x-axis, check this video, hope it helps.
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
- dreyz646 years ago
Helper III
parry2k I am looking at a dynamic Legend (the colors), not the X axis which is fixed (or Y axis for that matter).
- dreyz646 years ago
Helper III
parry2k I have a stacked column chart.
In the stack column chart you can add a column to the 'Legend' section.
This will separate each bar in colors according to the values of the column put in legend.
Like so:
What I want to do now is that the field i put in the "legend' section to change based on a slicer selection.