Complete the code to add a worksheet named 'Sales' to the dashboard.
dashboard = tableau.Dashboard() dashboard.[1]('Sales')
Use add_sheet method to add a worksheet to the dashboard in Tableau's API.
Complete the code to set the position of the sheet on the dashboard.
dashboard.add_sheet('Profit') dashboard.sheets['Profit'].[1] = (10, 20)
The position property sets the location of a sheet on the dashboard.
Fix the error in the code to add multiple sheets to the dashboard.
for sheet in ['Sales', 'Profit', 'Expenses']: dashboard.[1](sheet)
The correct method to add sheets one by one is add_sheet. There is no method named 'addSheets'.
Fill both blanks to set the size and position of a sheet on the dashboard.
sheet = dashboard.sheets['Expenses'] sheet.[1] = (300, 200) sheet.[2] = (50, 100)
Use size to set width and height, and position to set the location on the dashboard.
Fill all three blanks to add a sheet, set its size, and position it on the dashboard.
dashboard.[1]('Revenue') sheet = dashboard.sheets['Revenue'] sheet.[2] = (400, 300) sheet.[3] = (20, 40)
First, use add_sheet to add the sheet. Then set size and position properties to control its appearance on the dashboard.