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 option for calling d3-scale .nice() for axis log type #2685

Open
lharress opened this issue Feb 5, 2025 · 0 comments
Open

Add option for calling d3-scale .nice() for axis log type #2685

lharress opened this issue Feb 5, 2025 · 0 comments

Comments

@lharress
Copy link

lharress commented Feb 5, 2025

Is your feature request related to a problem? Please describe.
The line logarithmic scale type automatically calls .nice() from d3-scale (source) which (depending on the data set and base) adds additional ticks to the axis and grid. In some scenarios this is not ideal.

Describe the solution you'd like
Optionally call .nice() based on an axis config like the time scale (source)

Describe alternatives you've considered
Have tried various other options including manually setting the grid/ticks but they cumbersome and don't work as well with logarithmic scaling as the data tends to also need changing.

Additional context
Happy to create the PR myself, just keen to see if there's any objection.

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

No branches or pull requests

1 participant