Slicer filter behavior

Hello i have several Slicer widgets in my app and when any item in a Slicer is clicked a filter is triggered, how can i avoid triggering those filters and instead have all the information about the selected items?

I see, well the Slicer has an event called slicerfilter that you can use in this way:

slicer.on('slicerfilter', event => {
    const filter = event.data; 
    /*
       Filter has the format
       {
            path: slicer_group_name,
            label: label,
            operation: 'IN',
            value: [ Item1, Item2, Item3...]
       }
      */
})

Then you can use the seleted items within the values

1 Like

Yes, I tested it and it’s working correctly. However, when I select an item in that Slicer, the other Slicers and charts are still being filtered.

I see, well, then you need to add some rules to your Interaction Manager, let me show you how:

let rules = {
    "slicer-element-id": {
        trigger: false // now this chart will not trigger any filter
    },
    ... // and your other slicers...
}

yourIM.set('rules',rules)
1 Like

Got it, well this time all is working good, thanks for your help