Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Community,
Is their any way to find out height and width of qlik sense object using API provided by qlik sense.
Hi Arvind,
Could you please specify where you want to use this exactly?
If you are calling the object for a mashup, then you can use qlik.app.getObject method. You can use this method to insert the object into an HTML element. After that you can resize the element as you want using the element attributes.
qlik.app.getobject() will return promise object ....but i am unable to find size parameters..
I want to download image of qlik object in its original size..
In mashup i need to specify size of html element to fix qlik charts.
If I get success to fetch its width and height then i will use the same while generating its image.
Hi,
Qlik Sense objects are responsive and adjust to the size given to them, so they don’t have a fixed size. To get their size in an actual page you can use standard JavaScript calls.
Erik Wetterberg
Extending Qlik – Use Qlik in your own apps and sites
Hi,
If you are using older versions(<=June 2018) of Qlik Sense then you will first have to embed the object into an HTML element, then define the height and width. After that you can export the image using following module.
Capturing Image of Qlik Sense Objects in Mashups
Otherwise, if you are using September 2018, you can use qlik.app.visualization.exportImg . Here you can define height and width as per your requirements.