-
Notifications
You must be signed in to change notification settings - Fork 12
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
Programatically set brush #6
Comments
Hello @vinayakkulkarni
No, there is not
No, unfortunately This project is a quick solution to one of the problems I've faced and I thought I'd just open source it. If you don't know d3 it will be very hard/time-consuming to modify it, but for people with d3.js knowledge, it will be easier If you want to customize it, I'd suggest finding another d3 brush-based solution, so first, you can customize it and then you can style it as you want |
Note for @vinayakkulkarni (and anyone interested) - I needed to figure this out also, so I have found the proper calls necessary. To programmatically set the d3 brush you need to first move the brush, then kick off the events that are called with mouse down/up/etc. With prior d3 you could directly call d3 events (there's reference to doing it this way somewhere on the Internet), but now you need to use a callback. I'm sure I could do some things better here, but here's a starting point for what works for me so far:
|
Hey @bumbeishvili, Thanks for the plugin!
I am trying different ways to update the
index.js
file, but due to lack of comments & my understanding of d3, it's a bit difficult to find a solution/hack/workaround as of now.The text was updated successfully, but these errors were encountered: