datopian / datahub

🌀 Rapidly build rich data portals using a modern frontend framework
https://www.portaljs.org
MIT License
2.2k stars 328 forks source link

Embedding my Microsoft Power BI report / Google Lookerstudio is way too small and looks weird #1165

Open Daniellappv opened 5 months ago

Daniellappv commented 5 months ago

Description

I am using Iframe to embed my reports but it is barely visible / readable, practically useless, see screenshots:

  1. Example:
Screenshot 2024-05-31 at 11 21 30

Link https://datahub.io/@Daniellappv/datahub-cloud-template-2/docs/Add%20visuals%20and%20data-rich%20components#iframe

  1. Another example:
Screenshot 2024-05-31 at 11 25 47

Link https://datahub.io/@Daniellappv/my-first-repo https://github.com/Daniellappv/my-first-repo/blob/main/README.md

anuveyatsu commented 5 months ago

@Daniellappv cc @lucasmbispo I guess you just need to pass style param and set height to explicit number of pixels, e.g., try 600.

By default, height is set to '100%' which doesn't work, @lucasmbispo I think you could make it 600 as a default.

lucasmbispo commented 5 months ago

Changed PortalJS iFrame component and story per PR: https://github.com/datopian/datahub/pull/1170.

After the PR is merged, the next steps are:

cc @Daniellappv @anuveyatsu