Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

aaronnayan
Contributor III

Swap Charts with a button

Hi Guys

How would i swap a chart with a button

I have two charts but only want one displayed

How would i do this

Varibles are needed

1 Solution

Accepted Solutions
aaronnayan
Contributor III

Re: Swap Charts with a button

Create a variable

In Layout

First Chart

vChart=0

Second Chart

vChart=1

4 Replies
antoniotiman
Honored Contributor III

Re: Swap Charts with a button

You can use Container Single Object

Regards,

Antonio

aaronnayan
Contributor III

Re: Swap Charts with a button

Sorry with a button

aaronnayan
Contributor III

Re: Swap Charts with a button

Create a variable

In Layout

First Chart

vChart=0

Second Chart

vChart=1

Highlighted
Partner
Partner

Re: Swap Charts with a button

Hi Aaron,

If you are using the same Dimensions and Expressions, you can use the fast change option.

http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/FastTypeChange.htm

You can also use a container, and add both those charts into that one container, using its own created buttons to switch between the two.

Container Object ‒ QlikView

If its not what you need, you can create two charts, and create a variable (v_Show), to minimise it etc..

how to minimize one chart and place another chart by one click

gwassenaar‌ did a good qvw example to show this.

Hope this helps,

Shun