You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please read the documentation for brush.extent and the major changes to d3-brush as part of the 4.0 release. The functionality you are looking for is called the current brush selection (not to be confused with a D3 selection), and can be retrieved using d3.brushSelection or as event.selection on a brush event.
If you have further questions, please use Stack Overflow tag d3.js to ask for help. Although I make an effort to assist everyone that asks, I am not always available to provide help promptly or directly. Stack Overflow provides a better collaborative forum for self-help: tens of thousands of D3-related questions have already been asked there, and some answered questions may be relevant to you.
If you have a question about D3’s behavior and want to discuss it with other users, also consider the d3-js Google Group or joining the d3-js Slack.
I have pasted the code in https://bl.ocks.org/mbostock/34f08d5e11952a80609169b7917d4172 to my project and added "console.log(brush.extent())" in line 100.
But the script returns "function (){return t}" as the code in d3.v3 would return an array
The text was updated successfully, but these errors were encountered: