Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
arvind1494
Specialist
Specialist

Size of qlik sense object (Width and height)

Hi Community,

Is their any way to find out height and width of qlik sense object using API provided by qlik sense.

4 Replies
vikraant
Creator
Creator

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.

arvind1494
Specialist
Specialist
Author

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.

ErikWetterberg

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

vikraant
Creator
Creator

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.

https://help.qlik.com/en-US/sense-developer/September2018/Subsystems/APIs/Content/Sense_ClientAPIs/C...