Universal Containers' CRM Analytics team is building a dashboard with two widgets.
1. List widget associated to the query "Type_2" and grouped by the dimension "Type" (multi-selection)
2. Donut chart widget associated to the query "Step_pie_3" and grouped by the dimension "Type" The team wants to use bindings/interactions so any selection in the List widget will filter the Donut chart. The queries use different datasets, and users should be able to choose more than one Type (multi-selection).
What is the right syntax for the binding/interaction?
Correct Answer: A
For the given requirement where a selection in a list widget needs to filter data displayed on a donut chart, and considering the list allows for multi-selection of the 'Type', the correct binding/interaction would be to use a syntax that captures the multi-select aspect and passes it appropriately. The right syntax, as indicated in Option A, looks like this:
"{{column(Type_2.selection, [\"Type\"]).asObject()}}"
This syntax ensures:
* Multi-selection: The column() function in combination with .asObject() ensures that multiple selected values from the 'Type_2' query can be passed as an object, which the donut chart can utilize to filter its content.
* Correct Data Type Handling: By using .asObject(), the binding ensures the data passed between widgets maintains the correct structure expected by the CRM Analytics dashboard, thereby ensuring accurate filtering.