-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OnBrushDomainChangeEnd provides wrong domain #1400
Comments
I have the same problem, onBrushDomainChangeEnd provied the hole chart domain, and not the selected domain. |
Same here, any solution? |
I found a partial solution, I made this on my code: handleBrush called on onDomainChange onMouseUp called on onDomainChangeEnd
It works for me. |
@jorko95 Thanks for sharing your solution! I also have a workaround for my case, which is using debounce function from lodash: |
Bugs and Questions
Checklist
[x ] This is not a
victory-native
specific issue. (Issues that only appear invictory-native
should be opened here)[x ] I have read through the FAQ and Guides before asking a question
[x ] I am using the latest version of Victory
[x ] I've searched open issues to make sure I'm not opening a duplicate issue
The Problem
onBrushDomainChangeEnd
ofVictoryBrushContainer
provides the wrong domain: According to the Documentation, the current domain should be given. Instead, the domain of the whole Chart is provided.In contrast,
onBrushDomainChange
works as expected.Reproduction
See the following sandbox:
https://codesandbox.io/s/basic-victory-example-zrijg?fontsize=14
Drag the domain; the domains for
onBrushDomainChangeEnd
andonBrushDomainChange
are printed in the console.The text was updated successfully, but these errors were encountered: