Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
aresb
Creator
Creator

how to swap chart with radio button?

Hi everyone, 

i was asking myself if it's possible to change chart with a radio button ( like a parameter in tableau), but without any extension or mashups.

 

thank you so much in advance

 

Labels (4)
6 Replies
brunobertels
Master
Master

Hi 

Yes it is possible using container object , and button for navigation object

Create using variable panel editor 2 variables 

vShow with 0 as value 

vHide with 1 as value 

brunobertels_0-1654677648739.png

 

Then creates your 2 charts and add them in a container object 

 

creates 2 buttons :

brunobertels_1-1654677790230.png

 

for bar chart add action using "define variable value" in the list select 

vShow and 0 as value 

repeat the same calling vHide and 1 as value 

For Line Chart button do the same and for 

vShow 1 as value 

vHide 0 as value 

next in your container object 

on first chart add =$(vShow) in the show condition option 

on second chart add =$(vHide) in the show condition option 

you may have something like this : 

 

by clicking on bar chart : 

brunobertels_2-1654678302030.png

 

 

by cliking on Line chart : 

brunobertels_4-1654678354851.png

 

Regards 

aresb
Creator
Creator
Author

Hello Bruno,

thanks for your prompt answer.

I've repeated all your step above but actually it seems that, even though one of the tables disappears, the button provided for the othet table
doesn't work.

 

Below steps made for these actions:

- Created Variable vShow = 0;
- Created Variable vHide = 1;

aresb_6-1654764361241.png

 


- Created Summary/Details Buttons;
- For Summary created 2 actions, vShow and vHide, with values 0 and 1;

aresb_2-1654764229763.pngaresb_3-1654764243358.png

- For Details created 2 actions, vShow and vHide, with values 1 and 0;

aresb_4-1654764334048.pngaresb_5-1654764344460.png

 


- Added the two tables in a container;
- For Summary table added show condition =$(vShow), for Details table added show condition =$(vHide).

aresb_0-1654764173201.pngaresb_1-1654764183818.png

 

 

When i click finish edit on qlik, Summary Tables disappears, but when i try to click on Summary Button, nothing changes.

 

Am i making some Mistakes?

 

Thanks

brunobertels
Master
Master

Hi 

 

Can you try to reverse variable :

 

For Summary =$(vHide) under "Mostra condizione" 

For Details=$(vShow) under mostra condizione" 

 

regards 

aresb
Creator
Creator
Author

Thank you for your prompt respond...

 

But now i 've just reversed the problem.

Now summary is the table that appears, but when i click details button nothing changes.

i can't figure out what im doing wrong.

 

brunobertels
Master
Master

Hi 

Strange , it works for me , can your share your app or a qvd with sample data so that i could test it ? 

regards 

 

Bruno

aresb
Creator
Creator
Author

i've managed using

='vShow' 

 

thank you so much