0
0
Tableaubi_tool~10 mins

Shape encoding in Tableau - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to assign a shape mark type in Tableau.

Tableau
MARK_TYPE = '[1]'
Drag options to blanks, or click blank then click option'
Aline
Bbar
Cshape
Dtext
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'bar' which is a bar chart mark, not a shape.
Choosing 'line' which is for line charts, not shapes.
2fill in blank
medium

Complete the code to map a dimension to shape encoding in Tableau.

Tableau
SHEETS['Marks'].set_shape('[1]')
Drag options to blanks, or click blank then click option'
ASUM(Sales)
BCategory
CProfit
DRegion
Attempts:
3 left
💡 Hint
Common Mistakes
Using a measure like 'SUM(Sales)' which is numeric.
Using 'Profit' which is a measure, not a dimension.
3fill in blank
hard

Fix the error in the code to correctly assign shapes based on a dimension.

Tableau
worksheet.mark_type = '[1]'
Drag options to blanks, or click blank then click option'
Ashape
Bbar
Ccircle
Dline
Attempts:
3 left
💡 Hint
Common Mistakes
Setting mark type to 'circle' which is a shape but not the mark type name.
Using 'bar' or 'line' which are different chart types.
4fill in blank
hard

Fill both blanks to assign shape encoding and map a dimension to shapes.

Tableau
worksheet.mark_type = '[1]'
worksheet.encode_shape('[2]')
Drag options to blanks, or click blank then click option'
Ashape
BCategory
CSUM(Sales)
Dbar
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'bar' as mark type which disables shape encoding.
Mapping a measure like 'SUM(Sales)' to shapes.
5fill in blank
hard

Fill all three blanks to create a shape legend, assign shape encoding, and map a dimension.

Tableau
legend = worksheet.create_legend('[1]')
worksheet.mark_type = '[2]'
worksheet.encode_shape('[3]')
Drag options to blanks, or click blank then click option'
Ashape
CCategory
DRegion
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Region' instead of 'Category' for mapping.
Setting mark type or legend to 'bar' or other types.