Forum Discussion
SnymanGrobler
2 years agoFrequent Visitor
Pre Filter Visuals to limit data shown
Hi all, Is their a way to limit the amount of data when a visuals loads by setting a Pre Filter, but when slicers are used it overides the pre - filter. OR As shown below i have a Line Graph an...
Anonymous
2 years agoNot applicable
Hi,
In the dataviews, when a filter is applied (from a slicer or from a general filter in filter pane), you can get the "isDataFilterApplied" attribute to true:
public update(options: VisualUpdateOptions) { console.log(options.dataViews) }
You can probably use this to only create you chart when this attribute is set to true
Hope it answers your question
Have a good day