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

Customize the brush style #97

Closed
happysalada opened this issue Jan 14, 2023 · 2 comments
Closed

Customize the brush style #97

happysalada opened this issue Jan 14, 2023 · 2 comments

Comments

@happysalada
Copy link

Hi, thank you for the great library!

How would you customize the brush style ? Currently it is a gray rectangle with similar color borders. I would like to change the color of the borders. Currently all my attempts have failed. I tried.

  • use d3 select to select those borders and change the fill attribute
  • modify the class 'handlle--w' directly to show a different background.

Curious if you have a solution

@Fil
Copy link
Member

Fil commented Jan 15, 2023

These should be accessible with css. For example rect.selection {fill: red}.
See https://observablehq.com/@d3/brush-handles for another example.

@Fil Fil closed this as completed Jan 15, 2023
@happysalada
Copy link
Author

Thanks a lot!

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

2 participants