Sometimes there is a desire to select a bar and highlight the bar selected.
In this case, every time a sub category is selected, the corresponding bar turns to a color that distinguishes it from the other bars.
To make this, we will use parameter actions.
First, make a parameter for the sub category.
Next, make a calculated field to make a boolean value:
Then drag the calculated field onto color.
Finally, make a parameter action to change the sub category parameter every time one is selected.
Now every time a bar is clicked, the bar will be highlighted.