Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Hide/show button

Hi to All,

I have two charts,  i want hide and show that charts by using single button.

Is it possible? if possible how can i do that please help me .

If you dont mine please give me Navigation also.

please help me.

Thanks in advance.

Regards

Chandra.

11 Replies
alexandros17
Partner - Champion III
Partner - Champion III

1) define a variable: LET myVar = 0;

2) Add a button, in the text write: If(myVar=0, 'Show', 'Hide')

3) in the action -> add -> external -> set variable, in the upper box write :  myVar  in the lower box write: If(myVar=0,1,0)

not in your chart , in the conditional view write: myVar=0 in the first chart and myVar=1 in the second chartg

let me know

Not applicable
Author

Hi Saccone,

Thanku so much your reply.

where can i define that variable means in script or design (ctrl+alt+v).

where this Conditional view

please help me

alexandros17
Partner - Champion III
Partner - Champion III

Define the variable in script, you can find conditional view in the "Layout" tab of a chart in the "Show" area

Not applicable
Author

Superb Explenation..

Thanks for your replies.

i will try for this.... and let you know.

Thank you so much.

Not applicable
Author

STEP 1 - Open Variable Overview by going to Settings -> Variable Overview and Click on Add

STEP 2 - Name your variable (In this case it is called 'New_Variable'

STEP 3 - Give it the value zero in the Defintion text box

STEP 4 - Click OK

STEP 0.jpg

Now Create a Button Object

Step 1 - Go to the Actions Tab

Step 2 - Click on Add

Step 3 - Choose action type as External

Step 4 - Choose Action as Set Variable and click OK

STEP 1.jpg

Step 1 - Insert you variable name 'In this case called New_Variable

Step 2 - In the value box insert the following if statement =if($(New_Variable)=0,1,0) and click OK

STEP 2.jpg

Now CREATE a new Button object - the one that you want to hide by clicking on the first button

Step 1 - Go to the layout tab in set the Show group radio button to Conditional and insert the following if statement =if($(New_Variable)=0,True(),False())

STEP 3.jpg

There you go - it should work now!!

Have Fun

Not applicable
Author

Hi Warner superb explenation

Thanks both of your replies

Thanks

Not applicable
Author

Hi to all,

Hi Saccano and Warner,

Those are not working Please give me " In chart what i have to write".

thanks in advance.

alexandros17
Partner - Champion III
Partner - Champion III

My Example ...

Not applicable
Author

Yes Saccano

what i have is:

I have two pie charts like A and B.

if i click on button first i have to hide the A -chart as well as i want B-chart   display and if again i will click on button next B want hide and A want display.

I followed your procedure what you given but not working.

This is my requirement saccano

please help me out

Thanks.