question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Filtering on brushend

See original GitHub issue

This 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:open
  • Created 9 years ago
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
nreesecommented, Nov 2, 2015

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,

dc.barChart()
  .brushOn(true)
  .brushApply(dc.consts.brushend)
0reactions
gordonwoodhullcommented, Mar 2, 2017

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found