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

'nice' does not work as expected when set to a desired tick count #9259

Open
1 task done
arjuns-db opened this issue Feb 11, 2024 · 0 comments
Open
1 task done

'nice' does not work as expected when set to a desired tick count #9259

arjuns-db opened this issue Feb 11, 2024 · 0 comments
Labels

Comments

@arjuns-db
Copy link

Bug Description

I'm running into a couple of scenarios where setting nice to a desired tick count renders ticks abruptly:

  1. When a chart has padding applied, setting nice to an explicit number renders the axis ticks in a way that does not follow the data domain.

    Here's a working example of this issue. The data domain does not have any negative values so I'd expect that providing a desired tick count value to nice should show more ticks with positive values and not negative.

  2. I tried removing the padding in this other example and set nice to a number (e.g., 3) but the rendered chart has a different number of ticks (e.g., 6 excluding 0). I tried different numbers for the desired tick count but the output number of ticks is generally unpredictable.

Checklist

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

No branches or pull requests

1 participant