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

Replace Axis.integersOnly option with maximumFractionDigits #2220

Closed
nickofthyme opened this issue Oct 30, 2023 · 0 comments · Fixed by #2305
Closed

Replace Axis.integersOnly option with maximumFractionDigits #2220

nickofthyme opened this issue Oct 30, 2023 · 0 comments · Fixed by #2305
Assignees
Labels
:axis Axis related issue enhancement New feature or request kibana cross issue Has a Kibana issue counterpart :Lens Kibana Lens related issue

Comments

@nickofthyme
Copy link
Collaborator

nickofthyme commented Oct 30, 2023

Is your feature request related to a problem? Please describe.
With formatting the Axis tick labels, it is sometimes desirable to alter the values prior to their formatting. This is because the formatting can alter the true numerical value of label to the point where the label is no longer accurate with respect to the axis scale.

Describe the solution you'd like
We added the option to limit axis values to integers in #387, but I think making this more flexible as to define a maximumFractionDigits would provide greater utility to the chart consumer.

This option's naming comes from the Swift documentation for the NumberFormatter, see docs.

Describe alternatives you've considered
There is no true alternate to this other than a way for the chart consumer to manually dictate the ticks to be shown which would be too flexible from a configuration level.

Kibana Cross Issues

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 kibana cross issue Has a Kibana issue counterpart :Lens Kibana Lens related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant