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

Add debug mode to inspect scales and bounding box #111

Closed
mhkeller opened this issue Feb 7, 2023 · 1 comment · Fixed by #112
Closed

Add debug mode to inspect scales and bounding box #111

mhkeller opened this issue Feb 7, 2023 · 1 comment · Fixed by #112
Labels
awaiting-merge Finished in a branch, will be included in next release enhancement New feature or request

Comments

@mhkeller
Copy link
Owner

mhkeller commented Feb 7, 2023

This feature makes it easy to check whether the scales picked up the right domain and range. You add debug={true} to the component and it prints out info about the container and all active scales. Would any other things be helpful to add?

Here's a preview of the console output

Screenshot 2023-02-07 at 1 12 13 PM
Screenshot 2023-02-07 at 1 10 50 PM

@mhkeller mhkeller added the enhancement New feature or request label Feb 7, 2023
@mhkeller
Copy link
Owner Author

mhkeller commented Feb 7, 2023

It would be cool if hex codes appeared as their color.

A quick test:

Screenshot 2023-02-10 at 5 56 28 PM

@mhkeller mhkeller added awaiting-merge Finished in a branch, will be included in next release help wanted Extra attention is needed and removed awaiting-merge Finished in a branch, will be included in next release labels Feb 14, 2023
@mhkeller mhkeller added awaiting-merge Finished in a branch, will be included in next release and removed help wanted Extra attention is needed labels Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-merge Finished in a branch, will be included in next release enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant