Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
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
Anonymous
Not applicable
Author

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.

jduenyas
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)

Not applicable
Author

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