Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Display two charts from one button click

hi

i am trying to display two charts from one button click.. is there any possibility for this... is some one can plz help me will appreciate alot thank you in advance

35 Replies
Not applicable
Author

Try like this...

Create a variable : v_ShowChart

Create buttons whatever you want like Button1, Button2....

1.Now go to Button1 properties-->Actions-->Set variable

Variable   :  v_ShowChart

Value    :    A

2. Now goto chart properties-->Layout-->Conditional

there write : v_ShowChart='A'

Now this chart will display only when you click on Button1.

For Button2 take the value as 'B'

Not applicable
Author

What ever the charts u want to display under Button1, simply give the conditional display as v_ShowChart='A'

and for Button2 set the Conditional display as v_ShowChart='B'.

before this you have to set the actions on Buttons.

For Button1;

Variable   :  v_ShowChart

Value    :    A

For Button2:

Variable   :  v_ShowChart

Value    :    B

Not applicable
Author

Okay then in step 2, create two buttons instead of one.

First button: Set Variable: vChart = 0

Second Button: Set Variable: vChart = 1

Not applicable
Author

is step 3 n 4 the same??

narband2778
Creator II
Creator II

Step 1: create a Button --> In General select color

and paste this in calculated  =if(vButtonColor='Click',RGB(0,0,0), RGB(255,255,255)

In general Type Click in Text.

Step 2: Button Properties --> Action

create two set variables

variable name:  vShowObject

value: Click

variable name: vButtonColor

value: Clickt

Step 3: Select the chart which you want to display on clicking

For ex: In Bar chart

Properties --> Layout tab

select Conditional --> vShowObject = 'Click'

Hope this helps

Regards,

Naresh

Not applicable
Author

No they aren't, they should be opposite expressions.

if if(vChart = 0, 1, 0) and if(vChart = 1, 0, 1)