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

[cartesian] Provide numerical axis tick formatting out-of-the-box #2126

Open
Tracked by #1902 ...
markov00 opened this issue Aug 3, 2023 · 0 comments
Open
Tracked by #1902 ...

[cartesian] Provide numerical axis tick formatting out-of-the-box #2126

markov00 opened this issue Aug 3, 2023 · 0 comments
Labels
:axis Axis related issue enhancement New feature or request :xy Bar/Line/Area chart related

Comments

@markov00
Copy link
Member

markov00 commented Aug 3, 2023

We currently provide a formatting number option to the axis tick labels. This is usually not taken too much into consideration when applied to the axis and there are uses that should be avoided, for example:

  • use decimal points when rendering integer numbers
  • represent all the digits when a compact form is preferred
  • repeat on every tick label suffix/prefix that is used across the entire axis (for example m/s, B, %)

I believe that we can provide a better default formatting for numerical axes by:

  • always represent tick values in compact form (no decimal digits if not required)
  • don't repeat suffixes/prefixes by finding a place to put it and make it clear that this suffix/prefix applies to the entire axis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:axis Axis related issue enhancement New feature or request :xy Bar/Line/Area chart related
Projects
None yet
Development

No branches or pull requests

1 participant