Complete the code to set the mark type to a bar in Tableau.
worksheet.markType = '[1]'
Setting the mark type to 'bar' controls the visual encoding to display bars in the chart.
Complete the code to assign color encoding to the 'Category' field.
worksheet.color = '[1]'
Assigning 'Category' to color encodes data points by category colors.
Fix the error in the code to correctly set size encoding to 'Sales'.
worksheet.size = '[1]'
In Tableau scripting, field names must be passed as strings with quotes.
Fill both blanks to set the mark type to 'circle' and assign 'Profit' to size encoding.
worksheet.markType = '[1]' worksheet.size = '[2]'
Setting mark type to 'circle' changes the shape, and assigning 'Profit' to size encodes data size by profit.
Fill all three blanks to set mark type to 'line', assign 'Region' to color, and 'Sales' to size encoding.
worksheet.markType = '[1]' worksheet.color = '[2]' worksheet.size = '[3]'
Mark type 'line' creates a line chart, 'Region' colors by region, and 'Sales' sizes marks by sales amount.