Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
There were numerous times that I was asked to show more than one chart in the same page. This tutorial will show you how to place two buttons which will toggle the visibility of certain graphs.
<div class="row">
<div class="col-sm-6 qvplaceholder" id="QV01">
</div>
<div class="col-sm-6 qvplaceholder" id="QV02">
</div>
</div>
<div class="row">
<div class="col-sm-6 qvobject" id="QV03">
</div>
<div class="col-sm-6 qvobject" id="QV04">
</div>
</div>
//callbacks -- inserted here --
//open apps -- inserted here --
var app = qlik.openApp('Helpdesk Management.qvf', config);
//get objects -- inserted here --
app.getObject('QV04','a5e0f12c-38f5-4da9-8f3f-0e4566b28398');
app.getObject('QV03','PAppmU');
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default active">
Avg Case Resolution Time
<input type="radio" id="chart" name="chart" value="PAppmU" checked="checked"/>
</label>
<label class="btn btn-default">
Relative to Population
<input type="radio" id="chart" name="chart" value="a5e0f12c-38f5-4da9-8f3f-0e4566b28398"/>
</label>
</div>
$( document ).ready(function() {
$("input[name='chart']").change(function(obj){
$('#QV03').fadeOut('fast', function(){
app.getObject('QV03',obj.target.value);
$('#QV03').fadeIn('fast');
});
});
});
qlik.resize(obj.target.value)
Attached you will find all of the files. Just unzip and place into your "Documents\Qlik\Sense\Extensions" folder.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.