-
Notifications
You must be signed in to change notification settings - Fork 122
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
fix: tickFormat called on mark value #649
fix: tickFormat called on mark value #649
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM - opened storybook locally on Chrome 👍
@@ -125,6 +125,7 @@ describe('Tooltip formatting', () => { | |||
expect(tooltipValue.isHighlighted).toBe(false); | |||
expect(tooltipValue.color).toBe('blue'); | |||
expect(tooltipValue.value).toBe('10'); | |||
expect(YAXIS_SPEC.tickFormat).not.toBeCalledWith(null, undefined); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
## [18.4.2](v18.4.1...v18.4.2) (2020-04-24) ### Bug Fixes * tickFormat called on mark value ([#649](#649)) ([daf6a82](daf6a82))
🎉 This PR is included in version 18.4.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [18.4.2](elastic/elastic-charts@v18.4.1...v18.4.2) (2020-04-24) ### Bug Fixes * tickFormat called on mark value ([opensearch-project#649](elastic/elastic-charts#649)) ([7b84e7f](elastic/elastic-charts@7b84e7f))
Summary
Mark value was being called with the axis
tickFormat
function with null values. I don't think the mark value would ever be called with an axis formatted so I removed that and just pass the mark value.Checklist