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

fix: tickFormat called on mark value #649

Merged
merged 1 commit into from
Apr 24, 2020

Conversation

nickofthyme
Copy link
Collaborator

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

  • Unit tests were updated or added to match the most common scenarios

@nickofthyme nickofthyme added bug Something isn't working :tooltip Related to hover tooltip labels Apr 24, 2020
@nickofthyme nickofthyme requested a review from rshen91 April 24, 2020 14:15
Copy link
Contributor

@rshen91 rshen91 left a 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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link
Member

@markov00 markov00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nickofthyme nickofthyme merged commit daf6a82 into elastic:master Apr 24, 2020
@nickofthyme nickofthyme deleted the fix/mark-formatter-issue branch April 24, 2020 14:25
markov00 pushed a commit that referenced this pull request Apr 24, 2020
## [18.4.2](v18.4.1...v18.4.2) (2020-04-24)

### Bug Fixes

* tickFormat called on mark value ([#649](#649)) ([daf6a82](daf6a82))
@markov00
Copy link
Member

🎉 This PR is included in version 18.4.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Apr 24, 2020
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released Issue released publicly :tooltip Related to hover tooltip
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants