Skip to content

Embedding the 'fixed-sized' Tableau responsively to the container's width using CSS scaling and JavaScript calculations.

License

Notifications You must be signed in to change notification settings

bamboooofish/Tableau-Embedding-Responsively-by-CSS-Transform-Scale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Tableau Embedding Responsively by CSS Transform Scale

This project explores the responsive embedding of Tableau dashboards, specifically focusing on "fixed-size" dashboards. Its goal is to ensure that the dashboard's width adjusts according to the container's size, maintaining the aspect ratio for proportional scaling of content.

Note: This project is not intended to adapt the display for different Tableau "device" dashboards.

What It Looks Like - Explore here

tableau

Tested on Google Blogger:

  • Desktop:

    desktop

  • Phone:

    phone

Use it on Your Dashboard

Replace the src URL in the HTML to apply the same effect on your dashboard.

<tableau-viz
  id="tableauViz"
  src="https://public.tableau.com/views/_17205293548220/sheet0?:language=zh-TW&:sid=&:redirect=auth&:display_count=n&:origin=viz_share_link"
></tableau-viz>

About

Embedding the 'fixed-sized' Tableau responsively to the container's width using CSS scaling and JavaScript calculations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages