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

Some thoughts about optimize calc nice scales #35

Open
ANUGLYPLUGIN opened this issue Jan 27, 2024 · 0 comments
Open

Some thoughts about optimize calc nice scales #35

ANUGLYPLUGIN opened this issue Jan 27, 2024 · 0 comments

Comments

@ANUGLYPLUGIN
Copy link

ANUGLYPLUGIN commented Jan 27, 2024

Link recharts/recharts#4020

Thoughts

  • Maybe it's better to splice range equally into min and max.
  • Like [-2000, 3001] cut to 4 pieces. The initial pieces is min 1 and max 2 with 2000 steps, So it's better to set min and max equal and find no remaining count then return.
  • More commonly if the min has X and max has Y pieces, but we remain k pieces. We should first try to set X and Y equally, then we separate remaining tictcount into the two parts seems better.
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