-
Notifications
You must be signed in to change notification settings - Fork 133
Improve axis ticks deduplication #1417
Copy link
Copy link
Labels
:LensKibana Lens related issueKibana Lens related issue:axisAxis related issueAxis related issue:xyBar/Line/Area chart relatedBar/Line/Area chart relatedImpact:MediumbugSomething isn't workingSomething isn't workingkibana cross issueHas a Kibana issue counterpartHas a Kibana issue counterpart
Metadata
Metadata
Assignees
Labels
:LensKibana Lens related issueKibana Lens related issue:axisAxis related issueAxis related issue:xyBar/Line/Area chart relatedBar/Line/Area chart relatedImpact:MediumbugSomething isn't workingSomething isn't workingkibana cross issueHas a Kibana issue counterpartHas a Kibana issue counterpart
Type
Fields
Give feedbackNo fields configured for issues without a type.
Describe the bug
When using
tickFormatto round to a given decimal value, the tick placements may be different than the presented label.To Reproduce
Steps to reproduce the behavior:
integersOnlyoption.Or go to https://codesandbox.io/s/sad-flower-o05ps?file=/src/App.tsx
Expected behaviour
Tick placement is accurate
Screenshots
Version (please complete the following information):
latestAdditional context
The temporary solution is an iterative reduction of ticks until there are only unique tick labels. This is not perfect but will reduce the number of cases that show bad value. If the labels are identical with two ticks, expand the domain but limit this step to
5or some value to prevent an Infinite loop.Kibana Cross Issues
elastic/kibana#97100
Checklist
Kibana Cross Issueslistkibana cross issuetag is associated to the issue if any kibana cross issue is present