-
Notifications
You must be signed in to change notification settings - Fork 87
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
Retrieve layer selection from inside layer #91
Comments
Hi Sam, You can get the layer selection inside of Does this help? |
In this case it doesn't, but maybe the need is just specialized enough that I have to store it in that hash. I need it in my enter event:
Ideally I'd like to be able to refer to the layer's selection using something like |
Hi Sam, Inside any of the lifecycle events Additionally, the context with which you are operating is the DOM event callback which is actually controlled by d3, not us.
We're open to hearing other ideas of how to access the layer base selection. @jugglinmike, does it make sense to add |
@iros right, this is more along the lines of what I was thinking. I wasn't saying to overwrite |
This assumption takes for granted what is essentially a new conception of d3.chart's "Layer" object. From #43 (it's not every day I get to quote myself):
This is not to say that I'm against re-framing the way we think about layers, though. What's important to me is that we're deliberate about it. In this case, it will probably involve a lot more change than attaching a |
Is it possible to retrieve a layer's selection from inside the layer? Right now I generally see the layer's selections stored in a hash
which works, but it would be nice to be able to refer to the selection in case I didn't do this, e.g.
The text was updated successfully, but these errors were encountered: