QuickSight embed dashboard look: extra space cut

For embed dashboard, how can i dynamically change canvas size to avoid showing extra space I don’t use? See my screenshot

Hi @Mykhailo_Sorochev,

Are you setting the height to a fixed or relative value?

amazon-quicksight-embedding-sdk - npm

@David_Wong thank you for the answer. I believe that setting it to a fix number during embedding will limit just a size of the frame. But inside that frame tha chart still will be scrollable, correct? So, if I can to avoid this extra space I have to embed the view, correct? I was trying to find in QuickSight UI some kind of window adjustment, but it is not vivid for me how it works.

Hi @Mykhailo_Sorochev ,

David is right. Setting the height of the iframe to 100% should get rid of the extra space. This needs to be set in frameOptions that is passed into embeddingContext.embedDashboard call in your webpage script. Adding this additional hint since you included the analysis setting screenshot in your last response. [Marking David’s response as solution]

Regards,
Arun Santhosh
Pr QuickSight SA