Complete the code to assign a shape mark type in Tableau.
MARK_TYPE = '[1]'
In Tableau, to encode data points as shapes, you set the mark type to 'shape' or other mark types. Here, 'shape' is the correct mark type for shape encoding.
Complete the code to map a dimension to shape encoding in Tableau.
SHEETS['Marks'].set_shape('[1]')
Shape encoding typically uses a dimension like 'Category' to assign different shapes to different categories.
Fix the error in the code to correctly assign shapes based on a dimension.
worksheet.mark_type = '[1]'
To encode shapes in Tableau, the mark type must be set to 'shape' so that shapes can be assigned.
Fill both blanks to assign shape encoding and map a dimension to shapes.
worksheet.mark_type = '[1]' worksheet.encode_shape('[2]')
First, set the mark type to 'shape' to enable shape encoding. Then map the 'Category' dimension to the shape encoding.
Fill all three blanks to create a shape legend, assign shape encoding, and map a dimension.
legend = worksheet.create_legend('[1]') worksheet.mark_type = '[2]' worksheet.encode_shape('[3]')
Create a legend for shapes, set the mark type to 'shape', and map the 'Category' dimension to the shape encoding.