This is how I have done it before
Create an inline table in the script
Load * inline
This will create two new fields 'Selector' and 'Name'
Create a master item dimension with the fields being the dimension you want the user to be able to select
Use that master item dimension as a dimension in your chart and create a filter pane with the field 'Name' from the inline table.
Selecting a name in the filter pane will make the chart change, as there is no way to limit the selection to just one it is also wise to add a calculation condition on the chart.Calulation condition can be found under Add-ons > Data handling, I use getselectedcount(Name)=1
You could use extensions: Makes Sense to go round in circles
Alternate States could also help (i remember seeing links about it as it is new to Qlik Sense v2.2 - can't find them right now!)
It would also be possible with a Variable - although a little more complex:
In your Load Script create a separate table (make sure the field name does not match any existing field names - so there is no join) which lists the Dimension you want to choose from, with an incrementing number relating to it
Create a variable, which is: =IF(MAX([YourDimensionListNumber])=1, [FirstDimension],etc.
Then setup your bar chart to have the variable as a Dimension and add a Filter, with [YourDimensionListName] in it. Then when you choose an option from this list, it will show that dimension. It you select more than one option, it will choose the last one.
See app attached it gives a simple example of cyclic group using variable and the way to change colors of bar chart depending of the dimension.
Cyclic Group.qvf 176.0 K
From version 2.2.4 cycles are embedded within Sense, without using extensions. Just add 'Alternative dimensions' as shown below the dimension you already use in a visualization. From the menu of each visualization, the end-users can choose between the dimension and alternative dimension. This way you can create very powerful combinations by using drill-down master items and 'cycles'/alternative dimensions. Have a look at What's New in Qlik Sense 2.2 - Presentation - YouTube.