Complete the code to create a highlight action that targets the 'Category' field.
worksheet.dashboard().actions().addHighlightAction().setSourceField('[1]')
The highlight action should target the 'Category' field to highlight related marks.
Complete the code to set the highlight action to run on hover.
highlightAction.setRunOn('[1]')
Setting the action to run on 'hover' allows users to see highlights when they move the mouse over marks.
Fix the error in the code to correctly add a highlight action to the dashboard.
dashboard.actions().[1](highlightAction)The method to add a highlight action is 'addHighlightAction'. Other methods are incorrect or do not exist.
Fill both blanks to set the source and target fields for a highlight action.
highlightAction.setSourceField('[1]').setTargetField('[2]')
The source field is 'Category' and the target field is 'Region' to highlight related regions when a category is selected.
Fill all three blanks to create a highlight action with source field, target field, and run on click.
highlightAction.setSourceField('[1]').setTargetField('[2]').setRunOn('[3]')
The highlight action uses 'Category' as source, 'Region' as target, and runs on 'click' to highlight regions when a category is clicked.