Skip to content
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

Brush handles disappear at zero width #98

Closed
jgullive opened this issue Mar 14, 2023 · 4 comments
Closed

Brush handles disappear at zero width #98

jgullive opened this issue Mar 14, 2023 · 4 comments

Comments

@jgullive
Copy link

The issue can easily be reproduced in this example: https://observablehq.com/@d3/brush-handles

In the gif I make the width zero by dragging outside of the element, but the issue will happen anywhere.

d3 brush handles

@mbostock
Copy link
Member

This is the intended behavior. The empty selection is used to clear the brush.

@jgullive
Copy link
Author

Is there a way to disable the brush from ever clearing? I would like it to permanently be visible.

@Fil
Copy link
Member

Fil commented Mar 14, 2023

Yes, see this example https://observablehq.com/@d3/empty-brush-selection

@jgullive
Copy link
Author

Ahh!! Thanks @Fil! I had attempted something very similar but seeing that example clicked it into place for me. Working great now :)

Appreciate the help both of you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants