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(xy): handle zero-length time domains and shed AM/PM for a 24hr time #1464

Merged
merged 2 commits into from
Nov 8, 2021

Conversation

monfera
Copy link
Contributor

@monfera monfera commented Nov 5, 2021

Summary

Show multilayer time axis correctly for degenerate time domains (domain start equals domain end)

Details

Without the change to visible_ticks.ts:
image

With this change:
image

Issues

Checklist

  • The proper chart type label has been added (e.g. :xy, :partition)
  • The proper feature labels have been added (e.g. :interactions, :axis)
  • [ ] The :theme label has been added and the @elastic/eui-design team has been pinged when there are Theme API changes
  • All related issues have been linked (i.e. closes #123, fixes #123)
  • [ ] New public API exports have been added to packages/charts/src/index.ts
  • [ ] Unit tests have been added or updated to match the most common scenarios
  • 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)
  • [ ] Visual changes have been tested with all available themes including dark, light, eui-dark & eui-light

@monfera monfera added bug Something isn't working :axis Axis related issue :xy Bar/Line/Area chart related labels Nov 5, 2021
@monfera monfera marked this pull request as draft November 5, 2021 09:56
@monfera monfera changed the title fix(xy): handle degenerate time domains fix(xy): handle zero-length time domains Nov 5, 2021
@monfera monfera marked this pull request as ready for review November 8, 2021 18:05
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.

Changes looks good

@monfera monfera merged commit 379c2d6 into elastic:master Nov 8, 2021
@monfera monfera changed the title fix(xy): handle zero-length time domains fix(xy): handle zero-length time domains and shed AM/PM for a 24hr time Nov 8, 2021
nickofthyme pushed a commit that referenced this pull request Nov 9, 2021
# [39.0.0](v38.1.5...v39.0.0) (2021-11-09)

### Bug Fixes

* **deps:** update dependency @elastic/eui to v41 ([#1468](#1468)) ([0c38291](0c38291))
* **heatmap:** snap time bucket to calendar/fixed intervals ([#1462](#1462)) ([b76c12c](b76c12c))
* **xy:** handle zero-length time domains and switch to 24hr time ([#1464](#1464)) ([379c2d6](379c2d6))

### BREAKING CHANGES

* **heatmap:** The `xScaleType` is replaced by the prop `xScale`, which better describes a rasterized time scale with an Elasticsearch compliant interval.
@nickofthyme
Copy link
Collaborator

🎉 This PR is included in version 39.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@nickofthyme nickofthyme added the released Issue released publicly label Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:axis Axis related issue bug Something isn't working released Issue released publicly :xy Bar/Line/Area chart related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants