Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
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
GauravKabra
Contributor
Contributor

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           }      }); });