Forum Discussion

danieleperilli's avatar
danieleperilli
Kudo Commander
10 years ago
Solved

SelectionManager in custom visuals

Hi guys,
I'm working on a new custom slicer-like visual, but I have a problem with selectionManager.
The visual uses SelectionManager.select(...) function to filter all the other charts in the report.
But when the filter is applied, if I click on the legend/data points of a chart (like Line Chart - bound to the same measure) the filter is resetted. This behavior don't happen with the built-in Slicer or with the ChicletSlicer (but digging the code I saw that these visuals use the InteractivityService).
Can you point me to the right direction to apply a filter in a persistant way?

 

Thank you!

 

 

 

  • Forget it.

    I solved using persistSelectionFilter method from ISelectionHandler in the interactive behavior class.

1 Reply

  • Forget it.

    I solved using persistSelectionFilter method from ISelectionHandler in the interactive behavior class.