Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Not applicable

Qlik Sense Visualization API: How can I know when an object has finished painting?

Hi all,


Using the visualization API to ultimately create a custom static report. I'd like to know when the chart has finished loading before taking a snapshot of it. In the documentation I cannot see a callback mechanism being available for this.


Has anyone encountered this issue before? What was your workaround?


var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d');

app.visualization.get('xGhjKl').then(function(vis){

     vis.show("QV01"); //No callback available here?

});


Qlik Sense v2.2

1 Reply
Highlighted
GauravKabra
New Contributor

Re: Qlik Sense Visualization API: How can I know when an object has finished painting?

pass an object to vis.show method after element id like this:

var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d');
app.visualization.get('xGhjKl').then(function(vis){      vis.show("QV01", {           onRendered: function() {                // do your stuff here           }      }); });