Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
The #1 reason QlikView customers adopt Qlik Sense is a desire for a modern BI experience. Read More
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Not applicable

Switch X/Y axis from button click

I have a bar chart where the user is able to define the dimensions. What I would like to do is to allow the user the option of swapping the X & Y axis using a sheet object.

Thanks for your help,

T

3 Replies
Highlighted

How about 2 Chart objects for your 2 Chart variants and then show / hide controlled by a variable set by a button, so you only have one displayed at a time.

Highlighted
Specialist
Specialist

You can do this in the Code section (VBscript or JSscript) with the command

ChangeDimension "ChartID",0,"DimensionField" 

Create a button that will call this Sub (or function)

Highlighted
Not applicable

Hi Josh,

Thanks for your answer, however I'm not sure how I should be approaching this - I haven't yet touched on scripting in Qlikview because I'm still a beginner and the documentation provided by Qlik is severely lacking. Please could you give me a heads-up on how to approach this sort of thing?

Many thanks,

T