Complete the code to add a device-specific layout in Tableau.
dashboard = TableauDashboard() dashboard.[1]('Phone')
In Tableau, add_layout is used to add a device-specific layout to a dashboard.
Complete the code to specify the device type for the layout.
dashboard.add_layout(device_type=[1])The device type for a phone layout in Tableau is specified as 'Phone'.
Fix the error in the code to correctly add a device-specific layout for tablet.
dashboard.add_layout(device_type=[1])The device type must be a string with quotes, so 'Tablet' is correct.
Fill both blanks to set the layout size and device type for a phone layout.
dashboard.add_layout(device_type=[1], size=[2])
Phone device type is 'Phone' and typical phone layout size is (375, 667).
Fill all three blanks to create a device-specific layout for desktop with custom width and height.
dashboard.add_layout(device_type=[1], width=[2], height=[3])
Desktop device type is 'Desktop', width and height are numeric values like 1200 and 800 pixels.