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

Align axis ticks to interval values in time scale #908

Closed
nickofthyme opened this issue Nov 19, 2020 · 3 comments · Fixed by #1430
Closed

Align axis ticks to interval values in time scale #908

nickofthyme opened this issue Nov 19, 2020 · 3 comments · Fixed by #1430
Labels
:axis Axis related issue enhancement New feature or request released on @38.1.x released Issue released publicly :vislib Relating to vislib replacement :xy Bar/Line/Area chart related

Comments

@nickofthyme
Copy link
Collaborator

nickofthyme commented Nov 19, 2020

Is your feature request related to a problem? Please describe.
When displaying a histogram chart, for a given time domain and interval value, the tick values do not always align with the interval of the bucket/bin.

image

Notice in the image above that the interval is set to every 4 hours but the ticks are shown at every 3rd hour.

Describe the solution you'd like
Ticks align with the data buckets and interval provided.

Related to elastic/kibana#38494

@nickofthyme nickofthyme added enhancement New feature or request :axis Axis related issue :vislib Relating to vislib replacement :xy Bar/Line/Area chart related labels Nov 19, 2020
@monfera
Copy link
Contributor

monfera commented Nov 19, 2020

Thanks for adding this too! As the projection is discrete (ordinal), it can be seen as assinging a bin label for each bin. It can, in theory, be rarified on overlap, eg. show daily bars but label just June 2, 4, 6, 8, as the odd days can be implied, but there are better solutions. So the target is, 1:1 relation between bin and bin label; on sparklines, no bin label, or just at the beginning and/or end and/or some midpoints with a notch or gridline indicator.

@nickofthyme nickofthyme changed the title Align axis ticks to interval values in horizontal axis Align axis ticks to interval values in time scale Nov 20, 2020
@nickofthyme
Copy link
Collaborator Author

🎉 This issue has been resolved in version 38.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@nickofthyme nickofthyme added the released Issue released publicly label Oct 26, 2021
@nickofthyme
Copy link
Collaborator Author

🎉 This issue has been resolved in version 38.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:axis Axis related issue enhancement New feature or request released on @38.1.x released Issue released publicly :vislib Relating to vislib replacement :xy Bar/Line/Area chart related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants