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(axis): ordinal number ending fix for the weekly resolution #1634

Merged
merged 9 commits into from
Mar 28, 2022

Conversation

monfera
Copy link
Contributor

@monfera monfera commented Mar 28, 2022

Summary

Besides fixing the weeklies, the following improvements are made:

  • DRY: reference the same formatter for daily minors and day minors of week starting days
  • the st nd rd th got generalized to arbitrary integers (ie. beyond 31, and negatives too) for future reuse
  • image tests lock in the proper endings

image

Details

HT @markov00 for reporting this issue before integration 🙇 — I fixed it for the days but not for the weeks.

Issues

Fix #1633

Addresses elastic/kibana#128504

Checklist

  • The proper chart type label has been added (e.g. :xy, :partition)
  • The proper feature labels have been added (e.g. :interactions, :axis)
  • All related issues have been linked (i.e. closes #123, fixes #123)
  • The proper documentation and/or storybook story has been added or updated
  • The code has been checked for cross-browser compatibility (Chrome, Firefox, Safari, Edge)

@monfera monfera added :axis Axis related issue :xy Bar/Line/Area chart related labels Mar 28, 2022
@monfera monfera marked this pull request as draft March 28, 2022 13:39
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

storybook/parameters.ts Show resolved Hide resolved
@monfera monfera marked this pull request as ready for review March 28, 2022 15:53
@monfera monfera merged commit 18b4077 into elastic:master Mar 28, 2022
nickofthyme pushed a commit that referenced this pull request Mar 29, 2022
# [45.1.0](v45.0.1...v45.1.0) (2022-03-29)

### Bug Fixes

* **axis:** ordinal number ending fix for the weekly resolution ([#1634](#1634)) ([18b4077](18b4077))
* **deps:** update dependency @elastic/eui to ^52.2.0 ([#1632](#1632)) ([7e0be07](7e0be07))
* **deps:** update dependency @elastic/eui to v50 ([#1622](#1622)) ([0eb7975](0eb7975))
* **deps:** update dependency @elastic/eui to v51 ([#1624](#1624)) ([64d87e5](64d87e5))
* **deps:** update dependency @elastic/eui to v52 ([#1630](#1630)) ([ada254e](ada254e))
* **goal:** chart placement and overlap issues ([#1620](#1620)) ([b5d375b](b5d375b))

### Features

* **goal:** expose max sizing limits in theme.goal options ([#1621](#1621)) ([60a14ba](60a14ba))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:axis Axis related issue :xy Bar/Line/Area chart related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Axis] The new time axis displays wrong text for the dates with 1s
3 participants