Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to hide chart on button click?

Hi guys,

Please help me,

As you can see i have 4 charts (chart1,chart2,chart3,chart4) and  4 buttons(show1,show2,show3,show4)

and 1 Back button.

All i need to do is as follow:

1)when i click on button show1 the chat1 should maximize and rest other charts and buttons should hide.

2) when i click on button Back evrthing should display as it is which is shown in above screenshot.

3)Back button should get visible only after chart gets maximize.

11 Replies
Not applicable
Author

Please find the attached image.

sushil353
Master II
Master II

Hi,

Try this:

create 4 variable say v1,v2,v3 and v4..

now for each chart in Layout tab>show contional> put your variable for each saparate chart.

in button click add action to set the variable value 0 or 1 accordingly..

For more help post the sample application.

HTH

Sushil

Vegar
MVP
MVP

You can do this by vbscript or just

duplicate all four charts and make them maximized.

Create a variable vShowChart and

make each button set the variable to 1, 2, 3 or 4. 

Put a show condition on each of the maximized graphs.

Make "Back" to clear the variable (0).

Not applicable
Author

Hi,

Create 4 Button Object

And Each Button Object fix Action as SET Variable

Variable  : vShowChart

Value : 1

In Second Button Object Just Change Value : 2

In 3rd Button Object Just Change Value : 3

In 4th Button Object Just Change Value : 4

button.bmp

Select Chart 1> LayOut>Show Condition> vShowChart =1

Select Chart 2> LayOut>Show Condition> vShowChart =2

Select Chart 3> LayOut>Show Condition> vShowChart =3

Select Chart 4> LayOut>Show Condition> vShowChart =4

chart.bmp

Finally create one Back button

Back.bmp

Hope it will work

Regards-Bika

Not applicable
Author

Attached QVW for your reference.

Not applicable
Author

Hi, I am using personal edition so wont be able to open qvw file...
plz attach the code in notepad or in word....

Not applicable
Author

pfa the screenshot.

Not applicable
Author

Hi Bika ,

thanx for reply...but its not working...
plz find the my qvw attached file .

Not applicable
Author

Hi guys thanx for your reply...
But i am not getting the proper solution.
Plz find the attached qvw file