Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to display charts with button?

hi ,

I displayed bar chart with button. and I try to display another line chart with button.when I try to display line chart with button this not work to me.I want to display another chart with button.pls tell me out how to display line chart with button.I attached images below this mail .pls solve my problem.I want to display like this my chart If i click my button the chart displayed and click again my button the chart hide .i want to do this pls help me.

Capture2.PNG

Capture1.PNG

                                                  Thank you,

Regards

Madhu.

12 Replies
Not applicable
Author

edit the properties of the button, and add an action to set a variable like vShowChart=1.  then edit the chart properties, layout tab, and add the show condition:  vShowChart=1.   You may want to have another button for 'Hide Chart', where it sets the variable vShowChart=0

sunny_talwar

and in case you want to use the same button for hide and show you can set the action for vShowChart = If(vShowChart = 1, 0, 1)

Action.PNG

you can then use the following text so that the button tells you what you want to do next:

Text.PNG

and for your chart use conditional hide/show conditions for both your charts:

vShowChart = 1 for one chart

vShowChart = 0 for other chart

HTH

Best,

Sunny

Anonymous
Not applicable
Author

Hi Madhu

Check out this link .This gives what you need

Re: How to show/hide an Object using a Button

Thanks

Not applicable
Author

hello tammy gibson,

Thankyou for replying me.I displayed already a barchart in like =if(vshowhide=1,0,1) and give layout tab in conditional box like this vshowhide=0.it works  perfectily but the problem is I displayed another line chart like this

=if(vshowhide=2,1,2) go to layout tab in conditional box i write like this vshowhide=1.but it does not work to for another chart.pls tell me out and solve my problem.pls

                      Thankyou,

Regards

madhu

Not applicable
Author

hi-

use a different variable for the line chart, and see what happens. perhaps using the same variable for both charts is confusing...

Not applicable
Author

hello gibson,

I use another variable but its not working to  me.can you send example display 2 charts with 2 separate buttons .

           Thankyou,

Regards

Madhu

Not applicable
Author

hi-

attached is a simple qvw for you to look at-

Not applicable
Author

hello gibson ,

I fallowed as it is your instructions but it does not work  to me gibson.

I explain everything about Button and bar chart  with images  .

  • I created  The first button and Bar chart like this below. it works perfectly.
  • 1.General tab

button General tab1.PNG

2.Actions tab.

Button Actions tab2.PNG

3Button

Button image 3.PNG

I created Bar chart like this below.

4.Barchart layout tab.

Barchart layout tab1.PNG

5.Bar chart Layout.

Barchart layout tab1.PNG

6.Barchart.

Barchart image2.PNG

The above  Button and Barchart works perfectly.

2.I face the problem with another button and Line chart .see images

The below button and barchart did not work

I created 2 button like this.


1.Button 2 General tab image


button2 general.PNG


2.Button 2 Actions tab Image.

button2 actions.PNG


3. Button 2 object image.


Buttonimage2.PNG

I created Line chart  like this.

1.Line chart layout tab.


linechart layout1.PNG


2.Line chart image.

line chart image.PNG

The above chart and button did not work. pls solve my problem.

                                          Thankyou,

Regards

Madhu.

hariprasadqv
Creator III
Creator III

Hi,

Try this