Skip to content

fix: tickFormat called on mark value#649

Merged
nickofthyme merged 1 commit intoelastic:masterfrom
nickofthyme:fix/mark-formatter-issue
Apr 24, 2020
Merged

fix: tickFormat called on mark value#649
nickofthyme merged 1 commit intoelastic:masterfrom
nickofthyme:fix/mark-formatter-issue

Conversation

@nickofthyme
Copy link
Copy Markdown
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
Copy Markdown
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 👍

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice!

Copy link
Copy Markdown
Collaborator

@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
Copy Markdown
Collaborator

🎉 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