Filtering on brushend
See original GitHub issueThis is basically for cases where filtering is happening asynchronously(via AJAX). Right now the filtering happens as the user drags the brush. Now if the filtering is computationally expensive, or say, happening remotely, this causes a great lag, often not allowing the brushing to happen smoothly.
With filtering on brush end, the filtering happens only when the brush is set.
I found a workaround, by removing the filtering code from brushing()
function, and adding it to brushend()
Issue Analytics
- State:
- Created 9 years ago
- Comments:15 (10 by maintainers)
Top Results From Across the Web
brush.filter / D3 - Observable
This brush has been configured to require the Cmd Cmd key to drag a new brush selection using brush.filter. You can drag an...
Read more >Using .filter() on a horizontal brush - Stack Overflow
I need to create a d3 brush which allows only for expansion/contraction on the right. i.e. I need to prevent the default behavior...
Read more >Cross Filter + Brushing - Github-Gist
sepal length sepal width petal length petal width species
5.1 3.5 1.4 0.2 setosa
4.9 3.0 1.4 0.2 setosa
4.7 3.2 1.3 0.2 setosa
Read more >[New Feature] Filtering brushes & adding brush favourites in ...
Here's another new feature: Brush searching & pinning.This allows you to quickly find the brushes that you're after, and maybe discover some ...
Read more >Brush Filter - Tableau Exchange
Brush Filter allows you to easily create custom D3.js Brush filters as range selectors in Tableau Dashboards. Original work by Mike Bostock, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am using the 2.0.0-beta.19 and am still experiencing lag when brushing. It would be useful to have the ability to completely turn off filtering until the brushend event is fired.
How would you envision this implemented at the API level? Maybe a new property to specify when to apply the brush with a default value of BRUSHMOVE and setable to BRUSHEND?
For example,
Nope, not yet. If you want to help this along, you can try out PR #898 and leave a review of the functionality and or code on that ticket. Thank you!